change-requests
Manage change requests made by users.
GET /change-requests
Parameters
No parameters...
Endpoint
curl -X GET http://mgmt-node:8080/api/change-requests
Response 200
id
integer
optional
-
description
string
optional
-
createdBy
object
optional
-
affectedObject
string
optional
-
changes
array
optional
-
state
string
optional
[PENDING, APPROVED, REJECTED]
Example response
[
{
"id": 0,
"description": "string",
"createdBy": {
"id": 0,
"name": "string"
},
"affectedObject": "string",
"changes": [
{
"type": "string"
}
],
"state": "PENDING"
}
]
POST /change-requests/{id}/approve
Parameters
id
integer
path
-
Endpoint
curl -X POST http://mgmt-node:8080/api/change-requests/{id}/approve
Response 200
result
object
optional
-
statusCode
integer
optional
-
id
integer
optional
-
done
boolean
optional
-
startedAt
integer
optional
-
startedBy
string
optional
-
progress
object
optional
Progress indication of a background task.
name
string
optional
-
state
string
optional
[WAITING, RUNNING, FINISHED, FAILED, CANCELED]
object
string
optional
-
output
string
optional
-
Example response
{
"result": {},
"statusCode": 0,
"id": 0,
"done": true,
"startedAt": 0,
"startedBy": "string",
"progress": {
"total": 0,
"complete": 0
},
"name": "string",
"state": "WAITING",
"object": "string",
"output": "string"
}
POST /change-requests/{id}/reject
Parameters
id
integer
path
-
Endpoint
curl -X POST http://mgmt-node:8080/api/change-requests/{id}/reject