Roll Dice as a Service
{
"swagger": "2.0",
"info": {
"title": "Roll Dice as a Service",
"description": "Have you ever needed to roll dice and have no dice? Do you need to automate the rolling of dice?",
"termsOfService": "https://github.com/toddself/roll-space",
"version": "v1"
},
"host": "roll.space",
"basePath": "/",
"schemes": [
"http"
],
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"paths": {
"/": {
"get": {
"summary": "Rolls The Dice",
"description": "Rolls The Dice",
"operationId": "rolls-dice",
"parameters": [
{
"in": "query",
"name": "dice",
"description": "unique Id(s) for dice - comma delimited accepted",
"type": "string",
"format": "string"
}
],
"responses": {
"200": {
"description": "Returns dice rolls."
}
},
"tags": [
"Roll"
]
}
}
},
"definitions": {
"{dice}": {
"properties": {
"sum": {
"description": "The dice sum.",
"type": "integer"
},
"rolls": {
"description": "Each roll that has been made",
"type": "string"
}
}
}
}
}