Loading...
Loading...
Compare original and translation side by side
openclaw arch-api <subcommand> [flags]export OPENCLAW_API_KEY=your_api_keyopenclaw arch-api design --rest | jq .openclaw arch-api design --type rest --version v1 --hateoasopenclaw arch-api docs --input api-spec.json --output openapi.yamlopenclaw arch-api <subcommand> [flags]export OPENCLAW_API_KEY=your_api_keyopenclaw arch-api design --rest | jq .openclaw arch-api design --type rest --version v1 --hateoasopenclaw arch-api docs --input api-spec.json --output openapi.yamlopenclaw arch-api design --rest --endpoints users/get,users/post --version v1openclaw arch-api design --rest > api_design.json
cat api_design.json | grep "uri"openclaw arch-api generate-openapi --from-code ./src/api/controllers.py --output docs/openapi.yamlexport OPENCLAW_API_KEY=abc123
openclaw arch-api generate-openapi --from-code .endpoints:
- path: /users
method: GET
auth: jwtopenclaw arch-api validate --spec openapi.yaml --check hateoasopenclaw arch-api design --rest --endpoints users/get,users/post --version v1openclaw arch-api design --rest > api_design.json
cat api_design.json | grep "uri"openclaw arch-api generate-openapi --from-code ./src/api/controllers.py --output docs/openapi.yamlexport OPENCLAW_API_KEY=abc123
openclaw arch-api generate-openapi --from-code .endpoints:
- path: /users
method: GET
auth: jwtopenclaw arch-api validate --spec openapi.yaml --check hateoasopenclaw chain arch-api se-deployment --input api_design.jsonopenclaw arch-api design > input_for_deployment.txt$OPENCLAW_API_KEY#!/bin/bash
export OPENCLAW_API_KEY=your_key
openclaw arch-api design --restopenclaw chain arch-api se-deployment --input api_design.jsonopenclaw arch-api design > input_for_deployment.txt$OPENCLAW_API_KEY#!/bin/bash
export OPENCLAW_API_KEY=your_key
openclaw arch-api design --restopenclaw arch-api designtry {
openclaw arch-api generate-openapi --input invalid.json
} catch (e) {
if (e.includes("Validation error")) { console.log("Fix JSON schema"); }
}openclaw arch-api design 2>> error.logopenclaw arch-api designtry {
openclaw arch-api generate-openapi --input invalid.json
} catch (e) {
if (e.includes("Validation error")) { console.log("Fix JSON schema"); }
}openclaw arch-api design 2>> error.logexport OPENCLAW_API_KEY=your_keyopenclaw arch-api design --rest --endpoints users/get,users/post --version v1 --auth jwt --hateoasexport OPENCLAW_API_KEY=your_keyopenclaw arch-api generate-openapi --from-code ./src/api --gateway aws --output api_docs.yamlexport OPENCLAW_API_KEY=your_keyopenclaw arch-api design --rest --endpoints users/get,users/post --version v1 --auth jwt --hateoasexport OPENCLAW_API_KEY=your_keyopenclaw arch-api generate-openapi --from-code ./src/api --gateway aws --output api_docs.yaml