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
499 stars 262 forks source link

Error when accessing /api in the HTML page of Swagger #262

Closed francbartoli closed 4 years ago

francbartoli commented 5 years ago

Description The swagger page shows this error:

Resolver error at paths./api.get.responses.default.content.application/json.schema.$ref
Could not resolve reference: Could not resolve pointer: schemas/exception.yaml does not exist in document

Steps to Reproduce Open the following link in the browser http://localhost:5000/api#/server/get_api

Expected behavior No errors

Screenshots/Tracebacks

Senza nome

Environment

Additional context Add any other context about the problem here.

justb4 commented 5 years ago

Strange, cannot reproduce (using current master with flask_app.py as main):

image

Also http://localhost:5000/api#/server/get_api is ok. Running Starlette maybe, slash issue?

francbartoli commented 5 years ago

@justb4 I'm aligned with master and getting that error both from flask and starlette. No slash involved, I'm following the link OpenAPI from the root page. Actually strange indeed

tomkralidis commented 4 years ago

@francbartoli is this still an issue via http (not https)? Note that if you are testing with pygeoapi deployed via https, then you will likely run into issues (filed in #312 and https://github.com/opengeospatial/ogcapi-features/issues/276)

francbartoli commented 4 years ago

I tested again @tomkralidis and realized that /api is no longer available and it has been replaced by /openapi. This latter is working well with either flask/starlette so I'm going to close the issue