Add /status entry point
Summary:
Allow to test if the service is running.
Send a GET /status request and check the service replies with a 200.
Test Plan:
Tested through Postman.
Testing code
pm.test("Status code is 200", function () { pm.response.to.have.status(200); }); pm.test("Body matches string", function () { pm.expect(pm.response.text()).to.include("ALIVE"); });
An unit test for the Service isn't possible right now, as the service
is a god object handling reading the web request and providing output.
To use PSR messages interfaces should be considered a good idea to
separate concerns.
Reviewers: dereckson
Reviewed By: dereckson
Differential Revision: https://devcentral.nasqueron.org/D1293