- The source for the cyberdojo/mapper Docker image.
- A docker-containerized micro-service for https://cyber-dojo.org.
- Holds information on practice session ids ported from storer to saver by porter
API:
- All methods receive their named arguments in a json hash.
- All methods return a json hash with a single key.
- If the method completes, the key equals the method's name.
- If the method raises an exception, the key equals "exception".
- parameters, none
{}
- returns true if the service is ready, otherwise false.
{ "ready?": true }
{ "ready?": false }
Returns the git commit sha used to create the cyberdojo/porter docker image.
- parameters, none
{}
- returns the sha, eg
{ "sha": "8210a96a964d462aa396464814d9e82cad99badd" }
Asks if id6 matches the first 6 digits of any already ported storer session's 10-digit id.
- parameter, a 6-digit id, eg
{ "id6": "55D3B9" }
- returns, true if it does, false if it doesn't.
{ "mapped?": true }
{ "mapped?": false }
Asks for the 6-digit (saver) id of the already ported storer session whose 10-digit id uniquely completes the given 6-10 digit (storer) partial_id.
- parameter, a 6-10 digit storer session id, eg
{ "partial_id": "55D3B9" }
{ "partial_id": "55D3B97" }
{ "partial_id": "55D3B97E" }
- returns the 6-digit saver id if it exists, otherwise the unchanged partial_id.
{ "mapped_id": "55D3B9" }
{ "mapped_id": "E5pL3S" }
{ "mapped_id": "55D3B97E" }