nycmeshnet / meshdb

A convenient, stable, and sane database for tracking Members and Nodes for use with robots and humans
https://db.nycmesh.net
MIT License
12 stars 14 forks source link

Use OpenAPI Generator to make client libraries #592

Open WillNilges opened 1 month ago

WillNilges commented 1 month ago

https://github.com/willnilges/pymeshdb

$ docker run --rm \
  -v ${PWD}:/local openapitools/openapi-generator-cli generate \
  -i https://db.grandsvc.mesh.nycmesh.net/api-docs/openapi3.json \
  -g python \
  -o /local/out/python \
  --skip-validate-spec \
--package-name pymeshdb

Could do the same for JS.

WillNilges commented 1 month ago

https://openapi-generator.tech/docs/installation/

WillNilges commented 1 month ago

$ docker run --rm \
  -v ${PWD}:/local openapitools/openapi-generator-cli generate \
  -i https://db.nycmesh.net/api-docs/openapi3.json \
  -g typescript-node \
  -o /local/out/ts \
  --skip-validate-spec \
--package-name meshdb-ts```