You are required to create a simple RESTful software service that will allow a merchant to create a new simple offer.
All my offers have shopper friendly descriptions. I price all my offers up front in a defined currency.
- GET /order/{id} API and relative actor
- 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
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.