nocobase-api-call
Installation
SKILL.md
Goal
Run direct NocoBase API requests in a deterministic, low-dependency way for reusable automation and distribution.
Workflow
- Confirm request inputs: HTTP method, endpoint, and optional JSON payload or file.
- Ensure authentication config is available:
- Preferred: read
NOCOBASE_URLandNOCOBASE_API_TOKENfrom environment variables. - Optional fallback: read
./.envin user's current working directory. - If token is still missing and
./.envdoes not exist, create./.envtemplate first, then ask user to edit token. - Continue after user confirms token is set.
- Preferred: read
- Execute
scripts/nocobase-api.sh. - Return response JSON and HTTP status; if it fails, show the endpoint/method and the error message.