An HTTP server that stores and provides information about people. The data does not need to be stored persistently.
XML is used for all input. JSON used for all output.
- Create a person:
POST http://127.0.0.1:8080/person
In the response, the address of the created person will be set as the value for the location header
- Update person:
PUT http://127.0.0.1:8080/person/<id>
New data will overwrite old data
- Get the given person:
GET http://127.0.0.1:8080/person/<id>
Response with a JSON that corresponds to the format in the recruitment-verification module
4: List all persons or only those given by a gender parameter:
GET http://127.0.0.1:8080/person?[gender=<male|female>]
Response with a JSON with all persons.
If the parameter gender
is sent, then only show persons of the specified gender
- Run
mvn jetty:run
from recruitment-server directory, this will start a local web-server - Browse to http://localhost:8080/, you should see a static example of a JSON for a person
In order execute tests run the following commands:
- From recruitment-server, run:
[mvn jetty:run]
- From recruitment-verification run:
[mvn test]