Skip to content

Anujesh-Ansh/Trial_DevOps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-> Get All Products - http://127.0.0.1:5000/products Method = GET
-> Get Product By Id - http://127.0.0.1:5000/products/1 Method = GET
-> Add a Product - http://127.0.0.1:5000/products Method = POST
-> Sample Body Data For Postman { { "id": 5, "name": "Mac Book Pro", "price": 45.55, "description": "Amazing laptop with awesome security" } }

-> Get Cart Details - http://127.0.0.1:5000/cart?user_id=1234 Method = GET
-> Add Products To Cart - http://127.0.0.1:5000/cart/add Method = POST
-> Sample Body Data For Postman { "user_id": "user123", "product_id": 2, "quantity": 3 }

-> Delete Product From Cart - http://127.0.0.1:5000/cart/delete Method = POST
-> Sample Body Data For Postman { "user_id": "user123", "product_id": 2 }


Code for Jenkins to start

brew services start jenkins-lts

About

Creating a Pipeline nd running Pytest on it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages