Skip to content

This REST API offers various endpoints to perform essential product management tasks.

Notifications You must be signed in to change notification settings

SainiAditya1/Product-Management-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This README file provides information about the endpoints and usage of the API hosted at https://product-management-api-5ivy.onrender.com/.

Table of Contents


Retrieve Products

GET /products

This endpoint allows you to retrieve a list of products.

Example Request:

GET https://product-management-api-5ivy.onrender.com/products

Create a Product

POST /products

Create a new product by providing a JSON payload with product details.

Example Request:

POST https://product-management-api-5ivy.onrender.com/products
Content-Type: application/json

{
    "name": "Vivo ",
    "price": 12999
}

Update a product by id

Update a product by providing its id.

Example Request:

PUT https://product-management-api-5ivy.onrender.com/{id}
Content-Type: application/json

{   "name": "updated name",
    "price": 1249
}

Get a Product by ID

Retrieve a product by providing its unique identifier.

Example Request:

PATCH https://product-management-api-5ivy.onrender.com/{id}
Content-Type: application/json

{
    "price": 1249
}

Delete a Product by ID

Delete a product by providing its unique identifier.

Example Request:

DELETE https://product-management-api-5ivy.onrender.com/{id}

Route Not Found

If you attempt to access a route that does not exist, you will receive a 404 Not Found response.

Example Request:

GET https://product-management-api-5ivy.onrender.com/abc_xyz

About

This REST API offers various endpoints to perform essential product management tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published