Module routes

Source
Expand description

Routes for serving API endpoints.

Structs§

GeoJson
A wrapper struct for any geojson response.

Enums§

Error
Errors for our axum routes.

Functions§

collection
Returns the /collections/{collectionId} endpoint from the ogcapi-features conformance class.
collections
Returns the /collections endpoint from the ogcapi-features conformance class.
conformance
Returns the /conformance endpoint from the ogcapi-features conformance class.
from_api
Creates an axum::Router from an Api.
get_search
Returns the GET /search endpoint from the item search conformance class
item
Returns the /collections/{collectionId}/items/{itemId} endpoint from the ogcapi-features conformance class
items
Returns the /collections/{collectionId}/items endpoint from the ogcapi-features conformance class
post_search
Returns the POST /search endpoint from the item search conformance class
queryables
Returns the /queryables endpoint.
root
Returns the / endpoint from the core conformance class.
service_desc
Returns the /api endpoint from the core conformance class.
service_doc
Returns the /api.html endpoint from the core conformance class.