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
-
name
string
optional
-
id
integer
optional
-
state
string
optional
[WAITING, RUNNING, FINISHED, FAILED, CANCELED]
statusCode
integer
optional
-
done
boolean
optional
-
startedAt
integer
optional
-
startedBy
string
optional
-
object
string
optional
-
output
string
optional
-

Example response

{
  "result": {},
  "name": "string",
  "id": 0,
  "state": "WAITING",
  "statusCode": 0,
  "done": true,
  "startedAt": 0,
  "startedBy": "string",
  "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