Skip to content

md-ashafuddula/DemoProductRest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DemoProductRest

Project Structure

Full-project structure

Database design

databse (mydb) deisgn

1. Get request (Read product item)

See all products

Response

[
    {
        "id": 2,
        "name": "Realme 20",
        "price": 33090.0
    },
    {
        "id": 3,
        "name": "Xiaomi 9",
        "price": 25600.0
    },
    {
        "id": 5,
        "name": "Realme 80j",
        "price": 83300.5
    },
    {
        "id": 9,
        "name": "Realme 10",
        "price": 33090.0
    }
]

image

2. Post request (Save product item to DB)

Save product to DB

Request to save data

{
    "name": "Realme 89j",
    "price": 800.5
}

Response if product saved or not

Response-see all product

Save signle product to DB

Send product item

3. Put request (Update product item to DB)

Update product-2 to DB

Request in JSON body

{
    "id" : 2,
    "name": "Realme 8",
    "price": 13000
}

Response

Run Get method to see if product gets updated or not.

4. Delete product

Delete product-4

Request for delete

Response

Run Get method to see if product gets deteled or not.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages