HTTP method : POST api : http://localhost:8081/products/
body: { "product_no": "433452", "name": "Nick", "price": 60.9, "description": "apple", "no_in_stock": 89 }
HTTP method : PUT api : http://localhost:8081/products/{productId}
body: { "name": "Nick", "price": 60.9, "description": "apple", "no_in_stock": 90 }
HTTP method : DELETE api : http://localhost:8081/products/{productId}
HTTP method : GET api : http://localhost:8081/products/{productId}
HTTP method : GET api : http://localhost:8081/products
Method GET ALL:
API: http://localhost:8888/api/v1/customer/all
API: http://localhost:8888/api/v1/customer/add
{ "customerId": "c100", "firstName": "John", "lastName": "Smith", "address": { "street": "1000 N 4th St", "city": "Fairfield", "zipcode": "5555555" }, "phone": "641-111-2222", "email": "user.mail.com" }
API: http://localhost:8888/api/v1/customer/update
{ "customerId": "c100", "firstName": "John Updated", "lastName": "Smith", "address": { "street": "1000 N 4th St", "city": "Fairfield", "zipcode": "7777777" }, "phone": "641-111-2222", "email": "[email protected]" }
API: http://localhost:8888/api/v1/customer/remove
{ "customerId": "c100", "firstName": "John", "lastName": "Smith", "address": { "street": "1000 N 4th St", "city": "Fairfield", "zipcode": "5555555" }, "phone": "641-111-2222", "email": "user.mail.com" }