loiane / copilot-demo

9 stars 0 forks source link

API Documentation for Products Endpoint

GET /api/products

This endpoint returns a list of all available products in the system.

Response Format

The response is formatted as JSON and includes an array of products. Each product object contains the following information:

Example Response

[
  {
    "id": 12345,
    "name": "Awesome T-Shirt",
    "description": "The most comfortable t-shirt you'll ever wear.",
    "price": 19.99
  },
  {
    "id": 54321,
    "name": "Stylish Jeans",
    "description": "Classic denim jeans with a modern fit.",
    "price": 49.99
  }
]

Additional Notes