EasyDynamics / oscal-rest

An initial OpenAPI definition of an OSCAL REST API.
Creative Commons Attribution Share Alike 4.0 International
38 stars 13 forks source link

PUT / POST Methods Require RequestBody #97

Closed brian-comply0 closed 5 months ago

brian-comply0 commented 6 months ago

All PUT and POST methods require a requestBody element defining the data to be sent from the client to the server.

        "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}"
                }
              }
            }
        },
{
    "snapshot" : {
        "description" : "markup-multiline",
        "labels": ["token"],
        "types" : ["token"]
    }
}
{
    "snapshot" : {
        "description" : "markup-multiline",
        "labels": ["token"],
        "types" : ["token"]
    }
}
brian-comply0 commented 5 months ago

Addressed in PR #99