@@ -35,8 +35,9 @@ func NewFirstPartyVulnController(firstPartyVulnRepository shared.FirstPartyVulnR
3535}
3636
3737// @Summary List first-party vulnerabilities by organization
38+ // @Tags Vulnerabilities
3839// @Security CookieAuth
39- // @Security ApiKeyAuth
40+ // @Security PATAuth
4041// @Param organization path string true "Organization slug"
4142// @Param search query string false "Search term"
4243// @Success 200 {object} object
@@ -69,8 +70,9 @@ func (c FirstPartyVulnController) ListByOrgPaged(ctx shared.Context) error {
6970}
7071
7172// @Summary List first-party vulnerabilities by project
73+ // @Tags Vulnerabilities
7274// @Security CookieAuth
73- // @Security ApiKeyAuth
75+ // @Security PATAuth
7476// @Param organization path string true "Organization slug"
7577// @Param projectSlug path string true "Project slug"
7678// @Param search query string false "Search term"
@@ -131,8 +133,9 @@ func (c FirstPartyVulnController) Mitigate(ctx shared.Context) error {
131133}
132134
133135// @Summary Get first-party vulnerability details
136+ // @Tags Vulnerabilities
134137// @Security CookieAuth
135- // @Security ApiKeyAuth
138+ // @Security PATAuth
136139// @Param vulnID path string true "Vulnerability ID"
137140// @Success 200 {object} dtos.DetailedFirstPartyVulnDTO
138141// @Router /vulns/{vulnID} [get]
@@ -150,8 +153,9 @@ func (c FirstPartyVulnController) Read(ctx shared.Context) error {
150153 return ctx .JSON (200 , convertFirstPartyVulnToDetailedDTO (firstPartyVuln ))
151154}
152155// @Summary Create first-party vulnerability event
156+ // @Tags Vulnerabilities
153157// @Security CookieAuth
154- // @Security ApiKeyAuth
158+ // @Security PATAuth
155159// @Param vulnID path string true "Vulnerability ID"
156160// @Param body body object true "Event data"
157161// @Success 200 {object} dtos.DetailedFirstPartyVulnDTO
@@ -204,8 +208,9 @@ func (c FirstPartyVulnController) CreateEvent(ctx shared.Context) error {
204208}
205209
206210// @Summary List first-party vulnerabilities by asset version
211+ // @Tags Vulnerabilities
207212// @Security CookieAuth
208- // @Security ApiKeyAuth
213+ // @Security PATAuth
209214// @Param organization path string true "Organization slug"
210215// @Param projectSlug path string true "Project slug"
211216// @Param assetSlug path string true "Asset slug"
@@ -237,8 +242,9 @@ func (c FirstPartyVulnController) ListPaged(ctx shared.Context) error {
237242}
238243
239244// @Summary Get first-party vulnerabilities as SARIF
245+ // @Tags Vulnerabilities
240246// @Security CookieAuth
241- // @Security ApiKeyAuth
247+ // @Security PATAuth
242248// @Param organization path string true "Organization slug"
243249// @Param projectSlug path string true "Project slug"
244250// @Param assetSlug path string true "Asset slug"
0 commit comments