-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger.io API documentation #1
Comments
As the SensorThingsServer is an implementation of the Sensor Things API which is documented here we do not have any additional documentation of the API. As the SensorThings API is based on OData, perhaps an other approach could be to use existing software that exposes OData endpoints as Swagger. There is at least some discussion on this on the OpenAPI GitHub page (see). If you are just looking for a client to access any Server implementing the SensorThings API you can have a look at this project. It is a java client wrapping the SensorThings API. Further, if you have any Swagger description of the API and would like to add this to the project feel free to contribute. |
Glagnar, do you have any update on this? Have you completed the swagger documentation of OGC SensorThings API? |
Instead of Swagger, we have a Slate documentation. e.g., http://www.sensorup.com/docs/?javascript#filter It allows you to send requests and test SensorThings API. |
There is a actually a simplified version here, that could be easily used as a starting point: https://docs.linksmart.eu/display/HDS/Simplified+SensorThings+API |
That version at linksmart is unfortunately incorrect ( |
As I think an official schema should be provided with the standard I opened an issue for standardization: opengeospatial/sensorthings#72 I still think this is an issue to easy adoption... |
Also discussed on the official STA GitHub repo: opengeospatial/sensorthings#92 with links to some generated OpenAPI documents. |
How does this thread relate to the OpenAPI extension? https://fraunhoferiosb.github.io/FROST-Server/extensions/OpenAPI.html I switched it on and got a OpenAPI document that I was able to render in the Swagger UI. However, the generated URLs were incorrect as they missed out the http://server:8080/FROST-Server/v1.1/api generates invalid links that point to |
Yes, the OpenAPI extension is an experiment into generating this document. Thanks for testing it, it seems you found a bug, though the paths are actually correct:
The bug is that there is no |
@hylkevds we almost have the extension working, by there's an issue with the url paths Our end point is https://sensors-internal.bgs.ac.uk/FROST-Server/ But the extension is sending requests to https://sensors-internal.bgs.ac.uk/v1.1/Actuators for example. Is there a setting / ENV we've missed? |
Yes, that's the same bug as mentioned above. I've not had time to fix it yet, but I've opened a separate issue for it: #427 |
Ah great. For now we'll change our deployment to not use /FROST-Server/ |
Do you have the API documented, e.g. by swagger ?
This means I can generate clients for the OGC SensorThings API and use your component very easily. I have been working on this, but my version is by no means complete.
The text was updated successfully, but these errors were encountered: