geopython / pygeoapi

pygeoapi is a Python server implementation of the OGC API suite of standards. The project emerged as part of the next generation OGC API efforts in 2018 and provides the capability for organizations to deploy a RESTful OGC API endpoint using OpenAPI, GeoJSON, and HTML. pygeoapi is open source and released under an MIT license.
https://pygeoapi.io
MIT License
459 stars 250 forks source link

items collection link should point to collection #1698

Closed tomkralidis closed 1 week ago

tomkralidis commented 1 week ago

Description .../items rel=collection links currently emit an .../items link.

Steps to Reproduce https://demo.pygeoapi.io/master/collections/obs/items?f=json (see link object where rel=collection).

Expected behavior Link should be:

        {
            "type":"application/json",
            "title":"Observations",
            "rel":"collection",
            "href":"https://demo.pygeoapi.io/master/collections/obs"
        }

Screenshots/Tracebacks Snippet from https://demo.pygeoapi.io/master/collections/obs/items?f=json:

        {
            "type":"application/json",
            "title":"Observations",
            "rel":"collection",
            "href":"https://demo.pygeoapi.io/master/collections/obs/items"
        }

Environment

Additional context Add any other context about the problem here.