This small project allows the generation of OrchestraCities APIs / FIWARE APIs clients from OpenAPI 3.0 specs.
You can find the specs in the specs
folder.
There are a number of scripts to support the build, test and packaging:
validate-specs.sh
checks that all files in thespecs
folder are valid OpenAPI specs.lint-specs.sh
lints all files in thespecs
folder.generate-code.sh
generates the SDK code for the supported languages.build-javascript.sh
create a distribution for allnodejs
SDKs.build-python.sh
create a distribution for allpython
SDKs.test-javascript.sh
run tests for all thenodejs
SDKs.
In examples
we offer small examples to test the API.
Prerequisites:
$ npm install
$ sh generate-code.sh
Important Note:
We modified the ApiClient.js
and api_client.py
auto-generated so we have to
exclude it from code generation. In fact, we had to suppress the content type
header in GET requests to avoid API errors.