Closed TimSoethout closed 8 years ago
One possibility is to use Finagle to make calls to http-servers: https://twitter.github.io/finagle/guide/Quickstart.html#using-clients
I am not sure how to interpret this US... do we define the hardcodeddummy stub in the spray routes? or do we need to implement a way to configure the stubs in the stub server via an api call or some other way?
Hi Rezolya, in this user story a definition of the hardcoded stub in the spray routes is good enough. Configurable endpoints will be part of a later story. Does that answer your question?
Yes :)
Acceptance criteria:
given that the stubserver is running and a stub with endpoint "hardcodeddummystub" is defined when I do a HTTP GET to .../castalia/stubs/hardcodeddummystub then I should get a HTTP 200 response from the stubserver
given that the stubserver is running and no stub with endpoint "nonexistingstub" is defined when I do a HTTP GET to .../castalia/stubs/nonexistingstub then I should get a HTTP 404 response from the stubserver