inakianduaga / scala-play-car-advert

Scala Play Restful example app w/ AWS DynamoDB integration
http://petstore.swagger.io/?url=http://scala-play-car-advert.herokuapp.com/swagger/car/adverts/spec.yml
Other
2 stars 0 forks source link

Controller data flow #14

Open inakianduaga opened 8 years ago

inakianduaga commented 8 years ago

The data flow is

controller (raw json) -> `hydrated CarAdvert` -> StorageDriverTrait -> StorableTypeTrait -> `hydratedCarAdvert`  -> raw json

Json service

We need a service that will hydrate/convert between the database StorableTrait input/output types and the AdvertNewCar/AdvertUsedCar types.

Service needs to:

inakianduaga commented 8 years ago

TODO: