Skip to content
stauvel edited this page Nov 19, 2015 · 2 revisions

Installation

MongoDB

Under Linux

sudo apt-get install mongodb

Other

https://docs.mongodb.org/manual/tutorial/

Run Maven project

mvn spring-boot:run

MongoDb repositories are navigable under http://localhost:8080/

Getting started

Create candidate

POST /candidate/{firstName}/{lastName}

Returns the candidate with a candidate_uuid. This candidate_uuid must be used by the candidate for all requests.

Get a new Cards test instance for a candidate

GET /test/cards/{candidate_uuid}

Returns an exercice instance with an exercice_uuid. The programme will remember the candidate and date.

Answer the exercice

POST /test/{exercice_uuid} + {"cards":[...]}

  • 406 | Not Acceptable | good answer |
  • 200 | OK | |