{
"apiVersion": "0.0.1",
"swaggerVersion": "1.2",
"basePath": "http://api.dotdeploy.works",
"resourcePath": "/machine",
"produces": ["application/json"],
"apis": [
"path": "/machine",
"operations": [
"method": "GET",
"summary": "Get all machines for the user which corresponds with the provided accesstoken",
"type": "array",
"items": {
"$ref": "Machine"
},
"nickname": "findMachines",
"authorizations": {},
"parameters": [
"name": "accesstoken",
"description": "Token provided from authentication with Google OAuth",
"required": "true",
"type": "string",
"paramType": "query"
}
],
"responseMessages": [
"code": 500,
"message": "This is temporary and likely means your accesstoken is invalid."
]
"method": "POST",
"summary": "Create a new machine for the user which corresponds with the provided accesstoken",
"type": "void",
"nickname": "createNewMachine",
"name": "token-id",
"description": "Token for the user which will own this new machine",
"name": "hostname",
"description": "Name of the host which is being added",
"name": "machine-id",
"description": "UUID which should be used as the new machine-id",
"method": "DELETE",
"summary": "Delete a machine based on the provided machine-id",
"nickname": "deleteMachine",
"description": "machine-id of the machine which should be deleted",
"models": {
"Machine": {
"id": "Machine",
"required": [
"machine-id",
"active",
"profiles",
"created-on",
"last-checkin",
"hostname"
"properties": {
"machine-id": {
"type": "string"
"active": {
"type": "boolean",
"description": "A deleted or deauthorized machine will be marked inactive"
"profiles": {
"created-on": {
"type": "dateTime"
"last-checkin": {
"type": "dateTime",
"description": "The last time this machine checked for updates or performed any action using its token"
"name": {
"description": "A friendly name other than the hostname"
"hostname": {
"description": "The hostname as provided by this machine at creation time"
"description": {