Learn how to implement tapir and http4s endpoints for loading and updating products and to combine them.
We'll cover the following
Tapir endpoint for loading a product
http4s implementation of the load product endpoint
Tapir endpoint for updating a product
http4s implementation of the update product endpoint
Combined product routes
Tapir endpoint for loading a product
Having the basics settled, we can try to write our first endpoint. Let’s refactor our product routes. We will define our endpoints in the companion object of the class.