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
474 stars 255 forks source link

HTML UI issues from #92 (mini.css) #102

Closed justb4 closed 5 years ago

justb4 commented 5 years ago

Several issues found, some were there already before #92:

  1. Stale links when navigating with Next|Prev through Collections

NB this was already seen before #92

  1. Ditto for single Item
  1. JSON OpenAPI doc link

Not sure what the standard requires, or if http://localhost:5000/api?f=json should be explicitly rendered?

justb4 commented 5 years ago

Problems 1) and 2): some html links have trailing slash '/' in page URLs. In those cases relative links within the page get expanded to URLs with 'items/items..' i.s.o. 'items/..'. . Will solve.

justb4 commented 5 years ago

Item 3) : depends on content negotiation, default would be JSON (e.g. curl http://localhost:5000/). But in browser would be HTML, so need explicit f=json when HTML is rendered.

justb4 commented 5 years ago

Can close IMO, pls re-open if still nav errors as listed above found.

justb4 commented 5 years ago

Still stale links in map markers, caused by https://github.com/geopython/pygeoapi/blob/master/pygeoapi/templates/items.html#L85 . One-liner fix needed similar to regular HTML ft id links in table view. Will fix.

To reproduce:

Fix is similar to fix in table View in items.html.

justb4 commented 5 years ago

Closing, pls re-open if still nav errors as listed above found.