Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.
/ posting-offers Public archive

simple RESTful service in Scala, using akka-http, developed in TDD

Notifications You must be signed in to change notification settings

abuggin/posting-offers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assignment

You are required to create a simple RESTful software service that will allow a merchant to create a new simple offer.

Description

All my offers have shopper friendly descriptions. I price all my offers up front in a defined currency.

Todo

  • GET /order/{id} API and relative actor

Assumptions

  • json: the assignment isn't explicit about it but I think it brings value
  • optional: adding a merchant id when storing the offer in such a way that you could retrieve only the offer from one particular merchant
  • backend-only: I could have hacked up an ugly html page with some required form and one button to POST/GET the request

Note/Disclaimer

If it was a user story to develop in a normal context, I'd have tried to get some doubts relinquished. For example, I'd ask to understand in which way the customer would want to interact with the service: I already implemented the "create an offer" and an additional "retrieve all offers that have been created on the system". So I think that adding a "retrieve a specific offer" could bring value but I'd want to know if has business value. In this case also I don't want to even minimally over-engineer the solution.

About

simple RESTful service in Scala, using akka-http, developed in TDD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages