Models
Explore how to effectively reuse data models while implementing pure functional HTTP APIs in Scala. Understand how to add semi-automatic JSON codec derivation using the Circe library, as well as considerations for compile time and API stability when modifying model attributes.
We'll cover the following...
We'll cover the following...
Recap
We will reuse the models that we have already written here.
To recap, these were our models:
Derive JSON codecs
The only thing we will change is add a semi-automatic derivation of the JSON codecs. We just need to import the appropriate Circe package and call the derive functions.