Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -10634,6 +10634,63 @@ const docTemplate = `{
}
}
}
},
"put": {
"description": "Updates local-definitions for a given POA\u0026M with special handling of array and object fields.\n- Components and inventory-items arrays are treated as full replacements: the existing values on the POA\u0026M are overwritten by the arrays provided in the request body (no per-element merge is performed).\n- Sending an empty array [] for components or inventory-items clears that specific field (resulting in an empty array on the POA\u0026M).\n- Omitting a field in the request body leaves the existing value for that field unchanged.\n- Sending an empty JSON object {} as the payload deletes the entire local-definitions object for the POA\u0026M.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Plan Of Action and Milestones"
],
"summary": "Update POA\u0026M local-definitions",
"parameters": [
{
"type": "string",
"description": "POA\u0026M ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "Local definitions data",
"name": "local-definitions",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/oscalTypes_1_1_3.PlanOfActionAndMilestonesLocalDefinitions"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handler.GenericDataResponse-oscalTypes_1_1_3_PlanOfActionAndMilestonesLocalDefinitions"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/api.Error"
}
}
}
}
},
"/oscal/plan-of-action-and-milestones/{id}/metadata": {
Expand Down
57 changes: 57 additions & 0 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -10628,6 +10628,63 @@
}
}
}
},
"put": {
"description": "Updates local-definitions for a given POA\u0026M with special handling of array and object fields.\n- Components and inventory-items arrays are treated as full replacements: the existing values on the POA\u0026M are overwritten by the arrays provided in the request body (no per-element merge is performed).\n- Sending an empty array [] for components or inventory-items clears that specific field (resulting in an empty array on the POA\u0026M).\n- Omitting a field in the request body leaves the existing value for that field unchanged.\n- Sending an empty JSON object {} as the payload deletes the entire local-definitions object for the POA\u0026M.",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Plan Of Action and Milestones"
],
"summary": "Update POA\u0026M local-definitions",
"parameters": [
{
"type": "string",
"description": "POA\u0026M ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "Local definitions data",
"name": "local-definitions",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/oscalTypes_1_1_3.PlanOfActionAndMilestonesLocalDefinitions"
}
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/handler.GenericDataResponse-oscalTypes_1_1_3_PlanOfActionAndMilestonesLocalDefinitions"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"404": {
"description": "Not Found",
"schema": {
"$ref": "#/definitions/api.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/api.Error"
}
}
}
}
},
"/oscal/plan-of-action-and-milestones/{id}/metadata": {
Expand Down
43 changes: 43 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12562,6 +12562,49 @@ paths:
summary: Get POA&M local definitions
tags:
- Plan Of Action and Milestones
put:
consumes:
- application/json
description: |-
Updates local-definitions for a given POA&M with special handling of array and object fields.
- Components and inventory-items arrays are treated as full replacements: the existing values on the POA&M are overwritten by the arrays provided in the request body (no per-element merge is performed).
- Sending an empty array [] for components or inventory-items clears that specific field (resulting in an empty array on the POA&M).
- Omitting a field in the request body leaves the existing value for that field unchanged.
- Sending an empty JSON object {} as the payload deletes the entire local-definitions object for the POA&M.
parameters:
- description: POA&M ID
in: path
name: id
required: true
type: string
- description: Local definitions data
in: body
name: local-definitions
required: true
schema:
$ref: '#/definitions/oscalTypes_1_1_3.PlanOfActionAndMilestonesLocalDefinitions'
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/handler.GenericDataResponse-oscalTypes_1_1_3_PlanOfActionAndMilestonesLocalDefinitions'
"400":
description: Bad Request
schema:
$ref: '#/definitions/api.Error'
"404":
description: Not Found
schema:
$ref: '#/definitions/api.Error'
"500":
description: Internal Server Error
schema:
$ref: '#/definitions/api.Error'
summary: Update POA&M local-definitions
tags:
- Plan Of Action and Milestones
/oscal/plan-of-action-and-milestones/{id}/metadata:
get:
description: Retrieves metadata for a given POA&M.
Expand Down
Loading
Loading