{
  "name": "Secure API",
  "version": "1.0.0",
  "endpoints": {
    "public": {
      "POST /auth/register": "Create a new account",
      "POST /auth/login": "Login and get a token",
      "GET /products": "List all products",
      "GET /products/:id": "Get a single product",
      "GET /posts": "List all posts",
      "GET /posts/:id": "Get a single post"
    },
    "protected": {
      "GET /auth/me": "Get current user profile",
      "PUT /auth/me": "Update current user profile",
      "GET /orders": "List current user's orders",
      "POST /orders": "Create a new order",
      "GET /orders/:id": "Get a specific order",
      "POST /posts": "Create a new post",
      "PUT /posts/:id": "Update own post",
      "DELETE /posts/:id": "Delete own post",
      "GET /comments": "List comments",
      "POST /comments": "Add a comment to a post",
      "DELETE /comments/:id": "Delete own comment",
      "GET /admin/users": "List all users (admin only)",
      "DELETE /admin/users/:id": "Delete a user (admin only)"
    }
  }
}