[
  {
    "endpoint": "/api/services",
    "method": "GET",
    "description": "Retrieve all services.",
    "responses": {
      "200": { "$ref": "../examples/services/list.200.json" }
    }
  },
  {
    "endpoint": "/api/services/:id",
    "method": "GET",
    "description": "Retrieve a service by ID.",
    "request": {
      "params": { "id": "string" }
    },
    "responses": {
      "200": { "$ref": "../examples/services/get.200.json" },
      "404": { "$ref": "../examples/errors/404.json" }
    }
  },
  {
    "endpoint": "/api/services",
    "method": "POST",
    "description": "Create a new service.",
    "request": {
      "body": {
        "name": "string (required)",
        "description": "string (optional)"
      }
    },
    "responses": {
      "201": { "$ref": "../examples/services/post.201.json" },
      "400": { "$ref": "../examples/errors/400.json" }
    }
  },
  {
    "endpoint": "/api/services/:id",
    "method": "PUT",
    "description": "Update a service.",
    "request": {
      "params": { "id": "string" },
      "body": {
        "name": "string (optional)",
        "description": "string (optional)"
      }
    },
    "responses": {
      "200": { "$ref": "../examples/services/put.200.json" },
      "400": { "$ref": "../examples/errors/400.json" },
      "404": { "$ref": "../examples/errors/404.json" }
    }
  },
  {
    "endpoint": "/api/services/:id",
    "method": "DELETE",
    "description": "Delete a service by ID.",
    "request": {
      "params": { "id": "string" }
    },
    "responses": {
      "200": { "$ref": "../examples/services/delete.200.json" },
      "404": { "$ref": "../examples/errors/404.json" }
    }
  }
]
