prod-releaser.php/config/modules.json

102 lines
2.5 KiB
JSON
Executable File

{
"GET": {
"description": "GET /.",
"permissions": [],
"parameters": {}
},
"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": "Updates an existing administrator's data",
"permissions": [["admin"]],
"parameters": {
"URL0": { "description": "The UID of the wanted administrator.", "type": "id", "rename": "id_admin" },
"mail": { "description": "The new administrator email address", "type": "mail", "optional": true },
"password": { "description": "The new administrator passowrd", "type": "text", "optional": true }
}
},
"DELETE": {
"description": "Deletes an administrator",
"permissions": [["admin"]],
"parameters": {
"URL0": { "description": "The UID of the wanted administrator.", "type": "id", "optional": true, "rename": "id_admin" }
}
},
"GET": {
"description": "Gets an administrator | Gets all administrators if no id defined",
"permissions": [["admin"]],
"parameters": {
"URL0": { "description": "The UID of the wanted administrator.", "type": "id", "optional": true, "rename": "id_admin" }
}
}
},
"release": {
"GET": {
"description": "Pulls project from git branch.",
"permissions": [["admin"]],
"parameters": {
"URL0": { "description": "Name of the project to release", "type": "alphanumeric", "rename": "project" },
"URL1": { "description": "Step to run, if not given, all steps will be run", "type": "id", "rename": "step", "optional": true }
}
}
},
"a": {
"GET": {
"description": "GET A.",
"permissions": [],
"parameters": {}
},
"POST": {
"description": "POST A.",
"permissions": [],
"parameters": {}
},
"b": {
"PUT": {
"description": "PUT A/B.",
"permissions": [],
"parameters": {}
},
"DELETE": {
"description": "DELETE A/B.",
"permissions": [],
"parameters": {}
},
"c": {
"PUT": {
"description": "PUT A/B/C.",
"permissions": [],
"parameters": {}
},
"DELETE": {
"description": "DELETE A/B/C.",
"permissions": [],
"parameters": {}
}
}
}
}
}