Closed brian-comply0 closed 5 months ago
All PUT and POST methods require a requestBody element defining the data to be sent from the client to the server.
PUT
POST
POST /{model-name}
PUT /{model-name}/{identifier}
"requestBody": { "required" : true, "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/OSCAL{ModelName}" } }, "application/xml" : { "schema" : { "$ref" : "#/components/schemas/OSCAL{ModelName}XML" } }, "application/yaml" : { "schema" : { "$ref" : "#/components/schemas/OSCAL{ModelName}" } } } },
[x] For all PUT /{model-name}/attachment/{resourceUUID}/resource insert:
PUT /{model-name}/attachment/{resourceUUID}/resource
requestBody: content: application/json: schema: $ref: "#/components/schemas/OSCALResource"
[x] Define OSCALsnapshot schema
[x] For all PUT /{model-name}/snapshot/{identifier} and PUT /profile/{identifier}/resolved-snapshot/{identifier} insert:
PUT /{model-name}/snapshot/{identifier}
PUT /profile/{identifier}/resolved-snapshot/{identifier}
requestBody: content: application/json: schema: $ref: "#/components/schemas/OSCALsnapshot"
[x] The payload for POST /{model-name}/{id}/snapshot and PUT /{model-name}/{id}/snapshot/{id} is specified as follows:
POST /{model-name}/{id}/snapshot
PUT /{model-name}/{id}/snapshot/{id}
{ "snapshot" : { "description" : "markup-multiline", "labels": ["token"], "types" : ["token"] } }
labels have a cardinality of 0 or more
types have a cardinality of 0 or more
description has a cardinality of 0 or 1
[x] The payload for POST /{model-name}/{id}/resolved-snapshot and PUT /{model-name}/{id}/resolved-snapshot/{id}` is specified as follows:
POST /{model-name}/{id}/resolved-snapshot
Addressed in PR #99
All PUT and POST methods require a requestBody element defining the data to be sent from the client to the server.
PUT
andPOST
involving OSCAL content, include the content below. This includes the following endpoints:POST /{model-name}
PUT /{model-name}/{identifier}
[x] For all
PUT /{model-name}/attachment/{resourceUUID}/resource
insert:[x] Define OSCALsnapshot schema
[x] For all
PUT /{model-name}/snapshot/{identifier}
andPUT /profile/{identifier}/resolved-snapshot/{identifier}
insert:[x] The payload for
POST /{model-name}/{id}/snapshot
andPUT /{model-name}/{id}/snapshot/{id}
is specified as follows:labels have a cardinality of 0 or more
types have a cardinality of 0 or more
description has a cardinality of 0 or 1
[x] The payload for
POST /{model-name}/{id}/resolved-snapshot
and PUT /{model-name}/{id}/resolved-snapshot/{id}` is specified as follows: