Skip to content

Commit

Permalink
CVEProject#1076 Added missing openapi documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
david-rocca committed Jun 23, 2023
1 parent eb8008a commit b346634
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 24 additions & 0 deletions api-docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,12 @@
},
{
"$ref": "#/components/parameters/pageQuery"
},
{
"$ref": "#/components/parameters/cnaModified"
},
{
"$ref": "#/components/parameters/adpShortName"
}
],
"responses": {
Expand Down Expand Up @@ -2853,6 +2859,24 @@
"minimum": 1
}
},
"cnaModified": {
"in": "query",
"name": "cna_modified",
"description": "The CVE will have a CNA container that will have been modified or created",
"required": false,
"schema": {
"type": "boolean"
}
},
"adpShortName": {
"in": "query",
"name": "adp_short_name",
"description": "The CVE will have an ADP container that will have been modified or created with the the defined shortname",
"required": false,
"schema": {
"type": "boolean"
}
},
"short_name": {
"in": "query",
"name": "short_name",
Expand Down
4 changes: 3 additions & 1 deletion src/controller/cve.controller/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ router.get('/cve',
'#/components/parameters/countOnly',
'#/components/parameters/assignerShortName',
'#/components/parameters/assigner',
'#/components/parameters/pageQuery'
'#/components/parameters/pageQuery',
'#/components/parameters/cnaModified',
'#/components/parameters/adpShortName'
]
#swagger.responses[200] = {
description: 'A filtered list of CVE Records, along with pagination fields if results span multiple pages of data',
Expand Down

0 comments on commit b346634

Please sign in to comment.