Skip to content

Add OpenAPI/Swagger Documentation #1699

@KiwiKilian

Description

@KiwiKilian

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.

References

#1168

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions