while-linhhq-transpot-sv-webapp-api-conventions-rule.ocm.json json Copy{
"ocm": "1",
"id": "while-linhhq-transpot-sv-webapp-api-conventions-rule",
"kind": "skill",
"name": "api-conventions",
"description": "REST API design standards — URLs, methods, status codes, request/response envelopes",
"publisher": "while-linhhq",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-cursor-rules"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"REST API design standards — URLs, methods, status codes, request/response envelopes"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-cursor-rules",
"repository": "https://github.com/while-linhhq/transpot-sv-webapp",
"path": ".cursor/rules/api-conventions.mdc",
"ref": "35f055914a367a2be5912a1040e685c5f0fc5d07",
"url": "https://github.com/while-linhhq/transpot-sv-webapp/blob/35f055914a367a2be5912a1040e685c5f0fc5d07/.cursor/rules/api-conventions.mdc",
"key": "while-linhhq/transpot-sv-webapp/.cursor/rules/api-conventions.mdc"
}
},
"instructions": "# API Conventions\n\n## REST API Design Standards\n\n### URL Structure\n- Use **kebab-case** for URL paths: `/api/user-profiles`\n- Use **plural nouns** for resource collections: `/api/users`, `/api/products`\n- Nest related resources: `/api/users/:id/orders`\n- API version prefix: `/api/v1/...`\n\n### HTTP Methods\n| Method | Usage |\n|--------|-------|\n| GET | Read resources (idempotent) |\n| POST | Create new resource |\n| PUT | Replace entire resource |\n| PATCH | Partial update |\n| DELETE | Remove resource |\n\n### HTTP Status Codes\n| Code | Meaning |\n|------|---------|\n| 200 | OK — Successful GET/PUT/PAT",
"cost": {
"context_tokens": 449
}
}