This README file provides information about the endpoints and usage of the API hosted at https://product-management-api-5ivy.onrender.com/
.
- Retrieve Products
- Create a Product
- Get a Product by ID
- Update a Product by ID
- Delete a Product by ID
- Route Not Found
- Additional Endpoints
This endpoint allows you to retrieve a list of products.
Example Request:
GET https://product-management-api-5ivy.onrender.com/products
POST https://product-management-api-5ivy.onrender.com/products
Content-Type: application/json
{
"name": "Vivo ",
"price": 12999
}
PUT https://product-management-api-5ivy.onrender.com/{id}
Content-Type: application/json
{ "name": "updated name",
"price": 1249
}
PATCH https://product-management-api-5ivy.onrender.com/{id}
Content-Type: application/json
{
"price": 1249
}
DELETE https://product-management-api-5ivy.onrender.com/{id}
GET https://product-management-api-5ivy.onrender.com/abc_xyz