mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 22:34:56 +00:00
79 lines
1.5 KiB
JSON
79 lines
1.5 KiB
JSON
{
|
|
"operations": {
|
|
"create": {
|
|
"description": "Create or update credentials",
|
|
"input": {
|
|
"required": [
|
|
"username",
|
|
"passwordHash"
|
|
],
|
|
"optional": []
|
|
},
|
|
"output": "boolean",
|
|
"acl_required": [
|
|
"credential:write"
|
|
],
|
|
"system_only": true,
|
|
"security": {
|
|
"audit": true,
|
|
"never_log_password": true
|
|
},
|
|
"errors": [
|
|
{
|
|
"VALIDATION_ERROR": "Invalid credential input"
|
|
},
|
|
{
|
|
"NOT_FOUND": "User not found"
|
|
}
|
|
]
|
|
},
|
|
"update": {
|
|
"description": "Update credential password",
|
|
"input": {
|
|
"required": [
|
|
"username",
|
|
"passwordHash"
|
|
],
|
|
"optional": []
|
|
},
|
|
"output": "boolean",
|
|
"acl_required": [
|
|
"credential:write"
|
|
],
|
|
"system_only": true,
|
|
"security": {
|
|
"audit": true,
|
|
"never_log_password": true
|
|
},
|
|
"errors": [
|
|
{
|
|
"NOT_FOUND": "Credential not found"
|
|
},
|
|
{
|
|
"VALIDATION_ERROR": "Invalid credential update"
|
|
}
|
|
]
|
|
},
|
|
"delete": {
|
|
"description": "Delete credential by username",
|
|
"input": {
|
|
"required": [
|
|
"username"
|
|
]
|
|
},
|
|
"output": "boolean",
|
|
"acl_required": [
|
|
"credential:delete"
|
|
],
|
|
"system_only": true,
|
|
"security": {
|
|
"audit": true
|
|
},
|
|
"errors": [
|
|
{
|
|
"NOT_FOUND": "Credential not found"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |