Learn how to interact with the API endpoints to create, update, and load products.
We'll cover the following...
Our service
What have we created so far? Remember, this was the model we started with:
HTTP endpoints provided by our service
Let’s successively try out each API endpoint exposed by our service.
Run all the commands in the SPA widget given at the end of the lesson.
Create product
We will start with creating a product by using the exposed API /products on port 49152. We will create a POST request and pass the product model in a JSON object.
Review the product object below: