api-docs

API Documentation Standards

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "api-docs" with this command: npx skills add langchain-ai/skills-benchmarks/langchain-ai-skills-benchmarks-api-docs

API Documentation Standards

Design and document RESTful APIs following industry standards.

OpenAPI Specification

Always document APIs using OpenAPI 3.0+:

openapi: 3.0.3 info: title: User API version: 1.0.0

paths: /users: get: summary: List users parameters: - name: limit in: query schema: type: integer default: 20 responses: '200': description: Success content: application/json: schema: type: array items: $ref: '#/components/schemas/User'

components: schemas: User: type: object required: [id, email] properties: id: type: string format: uuid email: type: string format: email

REST Conventions

  • Use nouns for resources: /users , /orders

  • Use HTTP methods correctly: GET, POST, PUT, PATCH, DELETE

  • Return appropriate status codes: 200, 201, 400, 404, 500

  • Use pagination for lists: ?page=1&limit=20

  • Version your API: /v1/users

Error Responses

{ "error": { "code": "VALIDATION_ERROR", "message": "Invalid input", "details": [ {"field": "email", "message": "Invalid email format"} ] } }

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Web3

deep-agents-memory

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

langgraph fundamentals

No summary provided by upstream source.

Repository SourceNeeds Review
Web3

langchain fundamentals

No summary provided by upstream source.

Repository SourceNeeds Review