1) Delete BaseFilterQuery class, as it makes endpoints untestable with sqlalchemy_mock. For the API it's not a big deal, adding the filters manually makes little difference.
2) Add show_hidden parameter, so CVEs can hide/reveal hidden USNs.
3) Make cve.notices and notice.cves return full payload of notices and cves. cve.notices_ids and notice.cves_ids return just arrays of ids.
4) Add suffix .json to all endpoints
5) Validation bug fixes
6) Add cve_id filter for notices.json
Done
1) Delete
BaseFilterQuery
class, as it makes endpoints untestable withsqlalchemy_mock
. For the API it's not a big deal, adding the filters manually makes little difference.2) Add
show_hidden
parameter, so CVEs can hide/reveal hidden USNs. 3) Makecve.notices
andnotice.cves
return full payload ofnotices
andcves
.cve.notices_ids
andnotice.cves_ids
return just arrays of ids. 4) Add suffix .json to all endpoints 5) Validation bug fixes 6) Addcve_id
filter for notices.jsonQA
cve.notices_ids
): http://0.0.0.0:8030/security/cves/CVE-2020-12402.jsoncve.notices_ids
): http://0.0.0.0:8030/security/cves/CVE-2020-12402.json?show_hidden=Falsecve.notices_ids
): http://0.0.0.0:8030/security/cves/CVE-2020-12402.json?show_hidden=trueIssue / Card
Fixes #37