approvals
approvals API, 4 endpoints (generated)
프로덕션 승격을 위한 승인 워크플로: 목록 조회, 상세 확인, 승인 또는 반려.
GET /api/v1/approvals
GET/api/v1/approvals
승인 요청 목록
호출자의 현재 테넌트로 범위가 한정된 승인 요청을 조회합니다.
Permission: VIEW
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status | query | string? | ||
page | query | integer | ||
page_size | query | integer? |
Responses
| Status | Description |
|---|---|
| 200 | Successful Response (object) |
| 422 | Validation Error (HTTPValidationError) |
GET /api/v1/approvals/{request_id}
GET/api/v1/approvals/{request_id}
승인 상세
단일 승인 요청을 그 결정 이력과 함께 가져옵니다.
Permission: VIEW
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
request_id | path | string (uuid) | ✓ |
Responses
| Status | Description |
|---|---|
| 200 | Successful Response (object) |
| 422 | Validation Error (HTTPValidationError) |
POST /api/v1/approvals/{request_id}/approve
POST/api/v1/approvals/{request_id}/approve
요청 승인
대기 중인 요청에 대해 승인 결정을 내립니다.
Permission: APPROVE
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
request_id | path | string (uuid) | ✓ |
Request body: application/json, ApproveBody
| Field | Type | Required | Description |
|---|---|---|---|
comment | string? | Comment | |
delegated_from | string (uuid)? | Delegated From |
Responses
| Status | Description |
|---|---|
| 200 | Successful Response (object) |
| 422 | Validation Error (HTTPValidationError) |
POST /api/v1/approvals/{request_id}/reject
POST/api/v1/approvals/{request_id}/reject
요청 반려
대기 중인 요청을 반려하여 워크플로를 종료합니다.
Permission: APPROVE
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
request_id | path | string (uuid) | ✓ |
Request body: application/json, RejectBody
| Field | Type | Required | Description |
|---|---|---|---|
comment | string | ✓ | Comment |
Responses
| Status | Description |
|---|---|
| 200 | Successful Response (object) |
| 422 | Validation Error (HTTPValidationError) |