OpenAPI files
Machine-readable descriptions of both APIs, for code generators, Postman and API tools.
| API | OpenAPI file |
|---|---|
| Meishi API | https://api.meishi.cards/v1/openapi.json |
| Website orders API | https://api.public.meishi.cards/openapi, under the Website integration tag |
Both are OpenAPI 3.0, the same files this site's API reference is built from.
Generate a client
# TypeScript types
npx openapi-typescript https://api.meishi.cards/v1/openapi.json -o meishi.d.ts
# A client in another language
npx @openapitools/openapi-generator-cli generate \
-i https://api.meishi.cards/v1/openapi.json -g python -o meishi-clientPostman and Insomnia
Import the file's URL as a new collection. Set the collection's authorization to Bearer token with your key.