Creates a new group exercise from the custom-start-points manifest whose key is display_names[0]
, and returns its id.
- parameters (JSON-in)
- display_names:[String...].
The names of custom-start-points manifests.
For example,["Java Countdown, Round 1"]
. At present onlydisplay_names[0]
is used. The array is for a planned feature. - options:Hash[String=>Boolean]. Currently unused (and defaulted). For a planned feature.
- display_names:[String...].
The names of custom-start-points manifests.
- returns (JSON-out)
- the new exercise's id.
- example
$ curl \ --data '{"display_names":["Java Countdown, Round 1"]}' \ --header 'Content-type: application/json' \ --silent \ -X POST \ http://${IP_ADDRESS}:${PORT}/group_create_custom {"group_create_custom":"P0R0cU"}
Creates a new individual exercise from the custom-start-points manifest whose key is display_name
, and returns its id.
- parameters (JSON-in)
- display_name:String.
The name of a custom-start-points manifest.
For example,
"Java Countdown, Round 2"
. - options:Hash[String=>Boolean]. Currently unused (and defaulted). For a planned feature.
- display_name:String.
The name of a custom-start-points manifest.
For example,
- returns (JSON-out)
- the new exercise's id.
- example
$ curl \ --data '{"display_name":"Java Countdown, Round 2"}' \ --header 'Content-type: application/json' \ --silent \ -X POST \ http://${IP_ADDRESS}:${PORT}/kata_create_custom {"kata_create_custom":"8Ey4xK"}
Creates a new group exercise by combining the exercises-start-points manifest whose key is exercise_name
with the
languages-start-points manifest
whose key is languages_names[0]
, and returns its id.
- parameters (JSON-in)
- exercise_name:String.
The name of an exercises-start-points manifest.
For example,"Fizz Buzz"
- languages_names:[String...].
The names of languages-start-points manifests.
For example,["C#, NUnit"]
. At present onlylanguages_names[0]
is used. The array is for a planned feature. - options:Hash[String=>Boolean]. Currently unused (and defaulted). For a planned feature.
- exercise_name:String.
The name of an exercises-start-points manifest.
- returns (JSON-out)
- the new exercise's id.
- example
$ curl \ --data '{"exercise_name":"Fizz Buzz","languages_names":["C#, NUnit"]}' \ --header 'Content-type: application/json' \ --silent \ -X POST \ http://${IP_ADDRESS}:${PORT}/group_create {"group_create":"MwA7SJ"}
Creates a new individual exercise by combining the exercises-start-points manifest whose key is exercise_name
with the
languages-start-points manifest
whose key is language_name
, and returns its id.
- parameters (JSON-in)
- exercise_name:String.
The name of an exercises-start-points manifest.
For example
"Fizz Buzz"
. - language_name:String.
The name of a languages-start-points manifest.
For example,
"C#, NUnit"
. - options:Hash[String=>Boolean]. Currently unused (and defaulted). For a planned feature.
- exercise_name:String.
The name of an exercises-start-points manifest.
For example
- returns (JSON-out)
- the new exercise's id.
- example
$ curl \ --data '{"exercise_name":"Fizz Buzz","language_name":"C#, NUnit"}' \ --header 'Content-type: application/json' \ --silent \ -X POST \ http://${IP_ADDRESS}:${PORT}/kata_create {"kata_create":"UrNKPr"}
Tests if the service is ready to handle requests. Used as a Kubernetes readiness probe.
- parameters
- none
- returns (JSON-out)
- true if the service is ready
- false if the service is not ready
- example
$ curl --silent -X GET http://${IP_ADDRESS}:${PORT}/ready? {"ready?":false}
Tests if the service is alive. Used as a Kubernetes liveness probe.
- parameters
- none
- returns (JSON-out)
- true
- example
$ curl --silent -X GET http://${IP_ADDRESS}:${PORT}/alive? {"alive?":true}
The git commit sha used to create the Docker image.
- parameters
- none
- returns (JSON-out)
- the 40 character commit sha string.
- example
$ curl --silent -X GET http://${IP_ADDRESS}:${PORT}/sha {"sha":"41d7e6068ab75716e4c7b9262a3a44323b4d1448"}
- All methods pass any arguments as a json hash in the http request body.
- If there are no arguments you can use
''
(which is the default forcurl --data
) instead of'{}'
.
- If there are no arguments you can use
- All methods return a json hash in the http response body.
- If the method completes, a string key equals the method's name. eg
$ curl --silent -X GET http://${IP_ADDRESS}:${PORT}/ready? {"ready?":true}
- If the method raises an exception, a string key equals
"exception"
, with a json-hash as its value. eg$ curl --silent -X POST http://${IP_ADDRESS}:${PORT}/group_create_custom | jq { "exception": { "path": "/group_create_custom", "body": "", "class": "CreatorService", "message": "...", "backtrace": [ ... "/usr/bin/rackup:23:in `<main>'" ] } }
- If the method completes, a string key equals the method's name. eg