2016-11-06 16:04:17 +00:00
|
|
|
{
|
2016-11-08 08:54:59 +00:00
|
|
|
|
2017-12-10 19:33:18 +00:00
|
|
|
"admin": {
|
|
|
|
|
|
|
|
"POST": {
|
|
|
|
"description": "Creates a new administrator",
|
|
|
|
"permissions": [["admin"]],
|
|
|
|
"parameters": {
|
|
|
|
"username": { "description": "The new administrator username", "type": "varchar(3,20,alphanumeric)" },
|
|
|
|
"mail": { "description": "The new administrator email address", "type": "mail" },
|
|
|
|
"password": { "description": "The new administrator passowrd", "type": "text" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-12-10 20:24:39 +00:00
|
|
|
"PUT": {
|
2017-12-10 19:33:18 +00:00
|
|
|
"description": "Gets an administrator's data",
|
|
|
|
"permissions": [],
|
2017-12-10 20:24:39 +00:00
|
|
|
"parameters": {
|
|
|
|
"URL0": { "description": "Some string token", "type": "text", "rename": "id_article" },
|
|
|
|
"postdata": { "description": "Some string token", "type": "text" }
|
|
|
|
}
|
2017-12-10 19:33:18 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"DELETE": {
|
|
|
|
"description": "Deletes an administrator",
|
|
|
|
"permissions": [["admin"]],
|
|
|
|
"parameters": {}
|
|
|
|
},
|
|
|
|
|
2017-12-10 20:24:39 +00:00
|
|
|
"GET": {
|
2017-12-10 19:33:18 +00:00
|
|
|
"description": "Deletes an administrator",
|
|
|
|
"permissions": [["admin"]],
|
|
|
|
"parameters": {}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"token/renew": {
|
|
|
|
"POST": {
|
2016-11-08 08:54:59 +00:00
|
|
|
"description": "Renewal of the cyclic hashing system.",
|
2016-11-08 09:37:29 +00:00
|
|
|
"permission": ["cyclic-hash"],
|
2016-11-08 09:17:15 +00:00
|
|
|
"parameters": {
|
|
|
|
"hash": { "description": "new hash to store.", "type": "hash" }
|
|
|
|
}
|
2016-11-08 08:54:59 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
2017-12-10 19:33:18 +00:00
|
|
|
"release/pull": {
|
|
|
|
|
|
|
|
"POST": {
|
2016-11-07 07:15:16 +00:00
|
|
|
"description": "Pulls project from git branch.",
|
2016-11-08 09:37:29 +00:00
|
|
|
"permissions": ["cyclic-hash"],
|
2016-11-07 07:15:16 +00:00
|
|
|
"parameters": {
|
|
|
|
"project": { "description": "Project's name.", "type": "varchar(2,30,alphanumeric)" },
|
|
|
|
"branch": { "description": "Git release branch.", "type": "varchar(2,30,alphanumeric)" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-11-06 16:04:17 +00:00
|
|
|
}
|