geopython / pycsw

pycsw is an OGC CSW server implementation written in Python. pycsw fully implements the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web]. Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X). Please read the docs at https://pycsw.org/docs for more information.
https://pycsw.org
MIT License
198 stars 153 forks source link

ogcapi returns json if no accept header is provided #886

Open pvgenuchten opened 11 months ago

pvgenuchten commented 11 months ago

Description

in rich snippets test test a pycsw item url, notice that rich snippets receives the json representation (because it probably does not send a accept header) and can not parse the content. if you give it that url with ?f=html it is successfull in parsing it.

Two suggestions for improvement: