๐Ÿงช BOPADI API Docs

Welcome to the documentation for our awesome API. Below you'll find all the available endpoints and how to use them.

๐Ÿ” Get User Info

GET
/api/users/:id

Parameters

Parameter Type Required Description
id String Yes User ID to retrieve data for.

Example Request

GET /api/users/12345

Response

{
  "id": "12345",
  "name": "Jane Doe",
  "email": "jane@example.com"
}
Note: Returns 404 if user is not found.

๐Ÿ“ฆ Get All Products

GET
/api/products

Query Parameters

Parameter Type Required Description
limit Number No Number of products to return.
category String No Filter by product category.

Example Request

GET /api/products?limit=10&category=books

Response

[
  {
    "id": "001",
    "name": "Node.js Book",
    "price": 19.99
  },
  {
    "id": "002",
    "name": "JavaScript Guide",
    "price": 24.99
  }
]
Note: Default limit is 20 if not specified.