Skip to content
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

Providing an OpenAPI specification #136

Closed
dersvenhesse opened this issue Jun 17, 2024 · 5 comments
Closed

Providing an OpenAPI specification #136

dersvenhesse opened this issue Jun 17, 2024 · 5 comments

Comments

@dersvenhesse
Copy link
Contributor

dersvenhesse commented Jun 17, 2024

Hello,
first of all, thank you for directly adding models based on the json-schema in https://github.com/MobilityData/gbfs-json-schema. This helps a lot. Hereby I'd like to suggest another addition to the toolbox: a generic OpenAPI specification for GBFS.

In my knowledge developers often use OpenAPI specification (https://spec.openapis.org/oas/latest.html) to describe their (restful) apis. The brings possibilities to document the usage, add examples, provide additional descriptions, having support for multiple programming languages (similar to json-schema) all while providing consumers an easy-to-use and built-in tryout.

With a pre-existing specification providers only need to update some fields (like servers and info) and have a widely recognized documentation ready. Providers as well as consumers can easily use generators (like https://openapi-generator.tech/) to create code for implementation and usage.

I'd suggest one specification with all feeds combined, but I'm happy to discuss other alternatives.
I'd also be happy to provide the first draft if you folks also think this might be a good addition.

@richfab
Copy link
Contributor

richfab commented Jul 4, 2024

Hi @dersvenhesse!

Extending your thanks to @testower, @tdelmas and @Alessandro100 for adding models based on the json-schema 🙏

Thank you for this great suggestion about having a generic OpenAPI specification for GBFS. Would you mind sharing examples of such API for other data standards?

If other members of the community find this useful, please add a 👍 on the issue description like @futuretap.

Thanks!

@richfab
Copy link
Contributor

richfab commented Jul 8, 2024

Thank you @mplsmitch for these beautiful examples, it's very useful 🤩

@dersvenhesse We'd be very happy to welcome your first draft for an OpenAPI specification for GBFS.

I'm moving this issue to the repo where the code will likely be hosted. Please use this repo for your draft: https://github.com/MobilityData/gbfs-json-schema

Thank you! 🙏

@richfab richfab transferred this issue from MobilityData/gbfs Jul 8, 2024
@davidgamez
Copy link
Member

Closed by #138 for the 2.3 version.

@davidgamez
Copy link
Member

Latest v3.1-RC version will be addressed in #143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants