Loading...
Loading...
This skill should be used when the user asks to "generate API docs", "create API documentation", "generate curl examples", "create developer docs", or mentions generating documentation, curl examples, or developer guides from OpenAPI/OAS specifications.
npx skill4agent add mulesoft/mulesoft-dx api-doc-generatorpip install pyyamlpython3 skills/api-doc-generator/scripts/generate_docs.py path/to/spec.yaml [output-dir]./docs# Generate docs to default ./docs directory
python3 skills/api-doc-generator/scripts/generate_docs.py api-spec.yaml
# Generate docs to custom directory
python3 skills/api-doc-generator/scripts/generate_docs.py api-spec.yaml ./documentationGenerating API documentation from api-spec.yaml...
Generating overview page: README.md
Generating endpoint page: createUser.md
Generating endpoint page: getUserById.md
Generating endpoint page: listOrders.md
✓ Generated documentation for 3 endpoints
✓ Output directory: ./docs
View the documentation:
- Overview: ./docs/README.mdcurl -X POST "https://api.example.com/users" \
-H "Content-Type: application/json" \
-d '{
"name": "Jane Smith",
"email": "jane@example.com",
"age": 28,
"role": "developer"
}'docs/"Generate markdown documentation from my API spec at path/to/spec.yaml"
"Create API docs with curl examples from specs/my-api.yaml"
"Generate developer documentation for my OpenAPI spec"