prod-releaser.php/config/modules.json

62 lines
1.5 KiB
JSON
Executable File

{
"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" }
}
},
"PUT": {
"description": "Gets an administrator's data",
"permissions": [],
"parameters": {
"URL0": { "description": "Some string token", "type": "text", "rename": "id_article" },
"postdata": { "description": "Some string token", "type": "text" }
}
},
"DELETE": {
"description": "Deletes an administrator",
"permissions": [["admin"]],
"parameters": {}
},
"GET": {
"description": "Deletes an administrator",
"permissions": [["admin"]],
"parameters": {}
}
},
"token/renew": {
"POST": {
"description": "Renewal of the cyclic hashing system.",
"permission": ["cyclic-hash"],
"parameters": {
"hash": { "description": "new hash to store.", "type": "hash" }
}
}
},
"release/pull": {
"POST": {
"description": "Pulls project from git branch.",
"permissions": ["cyclic-hash"],
"parameters": {
"project": { "description": "Project's name.", "type": "varchar(2,30,alphanumeric)" },
"branch": { "description": "Git release branch.", "type": "varchar(2,30,alphanumeric)" }
}
}
}
}