This skill should be used when the user asks to "fetch the API docs", "check the API endpoint", "look up the API", "what parameters does the API accept", or when implementing features that depend on external API endpoints. Also activates when working on Jira tickets that reference API dependencies (e.g., "Requires API-10"), or when needing to verify request/response schemas for ProductService, OrderService, CartService, or any ApiClient-based service calls.
Retrieve endpoint details from the external API's OpenAPI 3.0.3 specification.
The mobile app is a thin client that proxies all data through an external API via ApiClient. The API serves its OpenAPI documentation at the /docs.openapi endpoint. This skill provides a Node.js script that fetches, parses, and formats endpoint details on demand.
scripts/fetch-api-docs.mjs — A Node.js script using js-yaml (already available in the project's node_modules).
Run from the project root (mobile/):
# List all available endpoints
node .claude/skills/fetch-api-docs/scripts/fetch-api-docs.mjs
# Get details for specific endpoints (path, parameters, request body, responses)
node .claude/skills/fetch-api-docs/scripts/fetch-api-docs.mjs /api/products /api/categories
# Search endpoints by keyword
node .claude/skills/fetch-api-docs/scripts/fetch-api-docs.mjs --search checkout
ApiClient call, verify the parameter names and types match the API spec.For each endpoint, the script outputs:
GET /api/products)The script reads API_URL from the project's .env file. Falls back to http://192.168.0.193:8000 if not found.