This repository is a source of truth / documentation for the spotto-api.
The repository consists of a series of typescript classes that document the API contract between the spotto API and its clients
- Clone this repository
- yarn install
- run 'yarn start' to start a documentation server
When adding endpoints create a new folder / file for your endpoint. Fill out file using others as a guide.
Any response and request shapes should be specified in the /types folder. The documentation server is sometimes unable to understand more complicated interfaces. In these scenarios please create two types files, one with a logical working type that can be used by other repositories. The other will be simply for filling the response server.
Any documentation specific types files should have the suffix 'Docs' within the same folder. e.g.
- types
- objects
- objectTypes.ts
- objectTypesDocs.ts
- objects
- Repo owner or admin