-
-
Notifications
You must be signed in to change notification settings - Fork 166
Description
Use-cases
We want to generate typesafe clients in TypeScript for interacting with the pelias HTTP API. This is often accomplished by generating from OpenAPI specs. These specs basically document the requests and responses of an API and their endpoints. The spec can then be used to generate clients in many languages and helps in general to debug or test an API.
Attempted Solutions
#1168 already started this process but got stalled.
Proposal
- Add or generate an OpenAPI spec to the api OR Documentation repository
- Add an endpoint which serves the Swagger UI, which makes the OpenAPI spec easily visible (optional)
I'm opening this issue to see if the pelias project would be interested in OpenAPI and if we should invest the time to open another PR. Depending on the implementation, this could also be just an OpenAPI spec living within the documentation repository. Preferred would be defining the spec close to the code and adding the Swagger UI, which would allow to verify deployments easily – that's why I've openend the ticket in this repository.