Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves 1058, 1060 Implements ADP role and AdpOnly middleware #1071

Merged
merged 12 commits into from
May 17, 2023
103 changes: 103 additions & 0 deletions api-docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,109 @@
}
}
},
"/cve/{id}/adp": {
"put": {
"tags": [
"CVE Record"
],
"summary": "Updates the CVE Record from ADP Container JSON for the specified ID (accessible to ADPs and Secretariat)",
"description": " <h2>Access Control</h2> <p>User must belong to an organization with the <b>ADP</b> or <b>Secretariat</b> role</p> <h2>Expected Behavior</h2> <p><b>ADP:</b> Updates a CVE Record for records that are owned by any organization</p> <p><b>Secretariat:</b> Updates a CVE Record for records that are owned by any organization</p>",
"operationId": "cveAdpUpdateSingle",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"description": "The CVE ID for which the record is being updated"
},
{
"$ref": "#/components/parameters/apiEntityHeader"
},
{
"$ref": "#/components/parameters/apiUserHeader"
},
{
"$ref": "#/components/parameters/apiSecretHeader"
}
],
"responses": {
"200": {
"description": "The updated CVE Record",
"content": {
"application/json": {
"schema": {
"$ref": "/schemas/cve/update-full-cve-record-response.json"
}
}
}
},
"400": {
"description": "Bad Request",
"content": {
"application/json": {
"schema": {
"$ref": "/schemas/errors/bad-request.json"
}
}
}
},
"401": {
"description": "Not Authenticated",
"content": {
"application/json": {
"schema": {
"$ref": "/schemas/errors/generic.json"
}
}
}
},
"403": {
"description": "Forbidden",
"content": {
"application/json": {
"schema": {
"$ref": "/schemas/errors/generic.json"
}
}
}
},
"404": {
"description": "Not Found",
"content": {
"application/json": {
"schema": {
"$ref": "/schemas/errors/generic.json"
}
}
}
},
"500": {
"description": "Internal Server Error",
"content": {
"application/json": {
"schema": {
"$ref": "/schemas/errors/generic.json"
}
}
}
}
},
"requestBody": {
"description": "Note: providerMetadata is set by the server. If provided, it will be overwritten.",
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "/schemas/cve/adp-minimum-request.json"
}
}
}
}
}
},
"/org": {
"get": {
"tags": [
Expand Down
Loading