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

Create endpoint to return CVE-IDs for CVE records the calling org has added ADP containers to #1096

Open
jdaigneau5 opened this issue Jul 12, 2023 · 0 comments

Comments

@jdaigneau5
Copy link
Collaborator

jdaigneau5 commented Jul 12, 2023

Summary

As an ADP, I want to make an API call that returns the list of CVE-ID objects for CVE records I have added ADP containers to.

A new endpoint should be created, such as GET /cve-id/adp, that's accessible to the Secretariat and organizations with the ADP role. It should return all CVE-ID objects that the calling user's organization has added an ADP container to.

Definition of Done

  • Create new function in cve-id.controller.js to query and process the data from the DB and return cve-id objects
  • Return empty list if no cve-id objects are found
  • Create a new endpoint GET /cve-id/adp that implements the above function and has correct middleware applied
  • Add filter parameters for cve_id_year, time_modified.lt, and time_modified.gt
  • Implement unit and integration tests
@jdaigneau5 jdaigneau5 changed the title DRAFT: Create endpoint to return CVE-IDs for CVE records the calling user has added ADP containers to DRAFT: Create endpoint to return CVE-IDs for CVE records the calling org has added ADP containers to Jul 12, 2023
@jdaigneau5 jdaigneau5 changed the title DRAFT: Create endpoint to return CVE-IDs for CVE records the calling org has added ADP containers to Create endpoint to return CVE-IDs for CVE records the calling org has added ADP containers to Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage
Development

No branches or pull requests

1 participant