ThingsPro OAPI document
- node >= v8
- yarn
yarn
# name must be gateway, server or edge
mkdir -p packages/oapi-tp-<name>/schema/<name>
touch packages/oapi-tp-<name>/schema/index.yaml
Note: after create document, remember to add reference in packages/oapi-tp-gateway/schema/index.yaml
yarn lint <name> # name must be gateway, server or edge
yarn build <name> && yarn start <name> # name must be gateway, server or edge