Interact with the Service
Explore how to interact with a Scala-based HTTP service by executing API endpoints for product creation, update, and retrieval. Understand using POST, PUT, and GET requests with Akka-HTTP and PostgreSQL in a practical environment.
We'll cover the following...
We'll cover the following...
Our service
What have we created so far? Remember, this was the model we started with:
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 ...