scala-academy / castalia

API stub server
Other
8 stars 3 forks source link

As a stubserver consumer I want to be able to receive dynamic JSON responses from a stub #8

Closed jordi133 closed 8 years ago

jordi133 commented 8 years ago

Acceptance criteria:

given that the stubserver is running when I do a HTTP GET to .../castalia/stubs/dynamicdummystub/default?response={anyString} then I should get a HTTP 200 response from the stubserver containing a json object with property "response" equal to "{anyString}"

given that the stubserver is running when I do a HTTP GET to .../castalia/stubs/dynamicdummystub/{anyInteger}?response={anyString} then I should get a HTTP 200 response from the stubserver containing a json object with property "id" equal to "{anyInteger}" and property "response" equals to "{anyString}"