Added the following endpoints with their corresponding objectives:
GET /users: How to deal with nested case classes in spray-json
GET /videos: How to deal with sealed traits in spray-json
Also added the corresponding test stub/object mothers in order to illustrate how to encapsulate the domain models instantiation responsibilities. This allow us to reuse this logic and delegate it to these kind of objects.
Added the following endpoints with their corresponding objectives:
GET /users
: How to deal with nestedcase class
es inspray-json
GET /videos
: How to deal withsealed trait
s inspray-json
Also added the corresponding test stub/object mothers in order to illustrate how to encapsulate the domain models instantiation responsibilities. This allow us to reuse this logic and delegate it to these kind of
object
s.