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

POST /cve/:id/reject documentation error #1322

Open
ElectricNroff opened this issue Jan 14, 2025 · 0 comments
Open

POST /cve/:id/reject documentation error #1322

ElectricNroff opened this issue Jan 14, 2025 · 0 comments

Comments

@ElectricNroff
Copy link
Contributor

router.post('/cve/:id/reject',
/*
#swagger.tags = ['CVE Record']
#swagger.operationId = 'cveCnaCreateReject'
#swagger.summary = "Creates a rejected CVE Record for the specified ID if no record yet exists (accessible to CNAs and Secretariat)"
#swagger.description = "
<h2>Access Control</h2>
<p>User must belong to an organization with the <b>CNA</b> or <b>Secretariat</b> role</p>
<h2>Expected Behavior</h2>
<p><b>CNA:</b> Creates a rejected CVE Record for a record owned by their organization</p>
<p><b>Secretariat:</b> Creates a rejected CVE Record for a record owned by any organization</p>"

The last two lines should be:

 <p><b>CNA:</b> Creates a rejected CVE Record for an ID owned by their organization</p>
 <p><b>Secretariat:</b> Creates a rejected CVE Record for an ID owned by any organization</p>"

(because this is a POST endpoint, the record does not exist until the call is completed)

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