REST API
The EasyGIS REST API methods allow developers to access the repository data and meta-data. This includes update geo data (feature types), map and layer definitions, member profiles, etc.
The API is entirely HTTP based. Methods to retrieve (by id, different searches) data from the EasyGIS API require a GET request. Methods that submit, change data require a POST or PUT request. A DELETE request is accepted for methods that remove data from the EasyGIS Repository.
The EasyGIS is built around a notion called Web resource. A resource represents a business entity and includes both: data and behavior. All Web resources have a unique URL, although itβs not prohibited to expose some auxiliary URLs for the same resource. All resources have 2 main representations, or formats: HTML and JSON. The default response format is HTML. A client may specify the desired resource presentation in the resource URL. The following is a request for JSON presentation to Maps resource:
http://localhost:8080/easygis/services/data/maps.json
The same resource might be requested as HTML page in 2 ways (with and without resource extension):
http://localhost:8080/easygis/services/data/maps or
http://localhost:8080/easygis/services/data/maps.html
Most of the EasyGIS Web resources support built-in search functionality. You may pass 5 special parameters requesting those resources:
- searchQuery β Full Text Search query string
- start - the index of the first result returned in this response
- limit - The number of entities to return per page, up to a max of 1000
- sort β property name used for sorting of the search results
- dir β direction of sorting. Can either be "ASC" or "DESC", defaults to ascending
Available REST Web resources
- Maps Resource
- Map Resource
- Layers Resource
- Layer Resource
- Feature Types Resource (meta-data management)
- Map of Feature Type Resource (maps of raw data)
- Features Resource (data management)
- SLD Styles Resource
- Coordinate Reference System (CRS) Resource
- Metadata Search Resource
- Map Data Search Resource
- Members Resource