product API Documentation
A comprehensive REST API for managing product
Introduction
APIRequest.in is a free platform designed to help students and developers practice API requests. It offers simple dummy APIs with user, movie, and product data to understand real-world API usage.
Base URL: https://apirequest.in/api/
Format: All responses are returned in JSON format.
product
GET /api/product
Retrieve a list of all products.
Query Parameters
Response (200 OK)
[
{
"brand": "LogiTech",
"category": "Electronics",
"created_at": "2025-03-01T12:00:00Z",
"currency": "INR",
"id": "P1001",
"name": "Wireless Mouse",
"price": 799.99,
"rating": 4.5,
"stock": 120
}
]
POST api/product
Create a new product.
Request Body
{
"brand": "LogiTech",
"category": "Electronics",
"created_at": "2025-03-01T12:00:00Z",
"currency": "INR",
"id": "P1001",
"name": "Wireless Mouse",
"price": 799.99,
"rating": 4.5,
"stock": 120
}
GET /api/product/:id
Retrieve a specific product by ID.
Response (200 OK)
{
"brand": "LogiTech",
"category": "Electronics",
"created_at": "2025-03-01T12:00:00Z",
"currency": "INR",
"id": "P1001",
"name": "Wireless Mouse",
"price": 799.99,
"rating": 4.5,
"stock": 120
}
DELETE /product/:id
Delete a product by ID.