Commit Graph

24 Commits

Author SHA1 Message Date
Tom Kralidis 29d119c419 fix timezone aware date parsing (#337)
* fix timezone aware date parsing

* fix ref

* add deps
2020-01-12 20:31:33 -05:00
Richard Law 17ed14107d Add JSON-LD representations (#246)
* Changes to sample pygeopai-config.yml
- improved terms_of_service and contact.url for SEO
- fixes typo for contact.instructions

* whitespace

* dynamically embed JSON-LD representation in head

* json-led representation for root, collections, and collection

* updates sample configuration with metadata that won't cause JSON-LD validation issues

* adds support for feature-level JSON-LD representations of collections and items

* improves consistency between microdata and JSON-LD root metadata

* valid Dataset spatial; and better use of @id

* role →  instructions

* adds jsonld f param to open api definition

* working with new temporal extent interface

* removes comment

* identify and retain NIR/HTTP IDs rather than construct them with reference to pygeoapi

* don't pop a feature.properties id, to retain JSON-LD reference integrity

* add/update tests for inclusion of json-ld responses

* bug fixes

* fix bug where id was assumed to be string

* better url checking

* renames format variable to avoid reserved word

* removes top-level CRS in obs sample config

* add json-ld textMimeType for serverless

* adds flask-cors dependency to allow cors

* moves json-ld-requesting script to bottom of body

* corrects schema.org url

* fixes urls

* adds pyld dependency

* adds tests for json-ld representations (incomplete)

* more tests

* make pyld a dev requirement only

* linting

* changes from revision

* removes merge artifact
2019-12-19 08:33:42 -05:00
Tom Kralidis 933950b099 move OpenAPI endpoint from /api to /openapi (#285) (#286) 2019-10-23 16:24:00 -04:00
Tom Kralidis 7b8dc69865 rename some functions to align with specification updates (#278) 2019-10-16 21:29:43 -04:00
Tom Kralidis 7e9b2c49bf Update sample title (#275)
* update test collection titles

* update test collection titles
2019-10-13 09:19:41 -04:00
Even Rouault 4ff32fdfc5 api: fix paging links (#272)
* api: fix paging links

- Add minimal validation of startindex and limit parameters
- Include limit parameter coming from initial request in next and prevl links
- Only include prev link if startindex > 0
- Only include next link if we got as many features at the limit

Note: there is a broken test for sortby that was unnoticed. I have marked
it as such.

* api: in links returned by /items, include input query parameters
2019-10-08 07:31:33 -04:00
Even Rouault 482f1587c4 api: fix to report an array of bbox in collection description
The latest version of the OAPI-F spec mandates the bbox to be
advertized as an array of bbox.
This commits accept the service configuration to have just
a single bbox or an array of bbox, and adapt accordingly to
generate the collection description.
2019-10-05 17:42:00 +02:00
Even Rouault 3f88575648 Fix service-doc and service-desc inversion, and update media type of openapi+json (#270)
* Landing page: fix inversion of service-doc and service-desc

service-desc should be for the OpenAPI version of /api, and
service-doc for the HTML version

See Abstract Test 40 of http://docs.opengeospatial.org/DRAFTS/17-069r3.html

* Update media type for OpenAPI JSon 3.0
2019-10-05 16:57:30 +02:00
Tom Kralidis e6e637beae sanitize bbox parameter (#266) 2019-10-02 19:28:54 +00:00
Tom Kralidis f021cf98cd ignore datetime parameter if collection is not time enabled (#252) (#254) 2019-09-26 09:59:45 -04:00
Tom Kralidis 611dffcb6b OpenAPI and datetime updates (#244)
* support CRS in collections, refactor OpenAPI responses, update collections model

* add test for invalid format for /api
2019-09-24 10:14:36 -04:00
Tom Kralidis 4fc95e8f79 allow no processes to be defined (#136) (#139)
* allow no processes to be defined (#136)

* fix flake8

* update testing process existence

* fix another round of comments

* add test assertions
2019-09-21 10:01:21 +02:00
Tom Kralidis 1b90b93d21 fix CITE test A.4.4.7 (#200)
* fix CITE test A.4.4.7

* fix CITE test A.4.4.7
2019-06-30 10:29:45 -04:00
Brad Hards c123a578d0 Add support for title and description to root JSON. (#183)
See https://github.com/opengeospatial/WFS_FES/commit/40735d81b6ee73c6ce17680288c8fa5186c58ae7
and https://github.com/opengeospatial/WFS_FES/commit/5b450ef18404d4a4fdb443f6444142c89ed4445f
for the related specification change.
2019-06-14 16:08:32 +02:00
Just van den Broecke 334cfdae6c fix and extend unit tests for #160 and #161 2019-06-03 13:41:20 +02:00
Tom Kralidis 40818b1e98 add helper function for YAML parsing 2019-05-28 01:27:31 +00:00
Tom Kralidis 809b2cb94a misc fixes (#131)
* cite fixes

* fix HTML
2019-05-22 09:50:09 -04:00
Tom Kralidis c04c7ba71a fix pathing to work with subpaths behind proxies (#120) 2019-05-14 15:25:40 -04:00
Tom Kralidis 2623e5fc76 fixes for OGC CITE tests (#109) 2019-05-13 22:50:59 -04:00
Just van den Broecke 0b67080f14 #102 several fixes for (dead) links in navigating HTML (#103) 2019-05-02 09:48:34 -04:00
Tom Kralidis c4597f563b add HTML response for api endpoint (#98) (#101) 2019-04-29 07:32:12 -04:00
Tom Kralidis 20c96a8f47 add tests for #89 2019-04-06 08:46:20 -04:00
Tom Kralidis 44d347a09f support text/html encoding request in headers (#87) (#88) 2019-03-24 15:20:05 -04:00
Tom Kralidis 9bea312307 add Python API level testing (#85) 2019-03-05 08:02:01 -05:00