mirror of
https://github.com/coder/coder.git
synced 2025-07-13 21:36:50 +00:00
chore: update audit log api docs (#10486)
This commit is contained in:
11
coderd/apidoc/docs.go
generated
11
coderd/apidoc/docs.go
generated
@ -222,14 +222,6 @@ const docTemplate = `{
|
||||
"type": "string",
|
||||
"description": "Search query",
|
||||
"name": "q",
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "After ID",
|
||||
"name": "after_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@ -285,6 +277,9 @@ const docTemplate = `{
|
||||
"204": {
|
||||
"description": "No Content"
|
||||
}
|
||||
},
|
||||
"x-apidocgen": {
|
||||
"skip": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
11
coderd/apidoc/swagger.json
generated
11
coderd/apidoc/swagger.json
generated
@ -184,14 +184,6 @@
|
||||
"type": "string",
|
||||
"description": "Search query",
|
||||
"name": "q",
|
||||
"in": "query",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"format": "uuid",
|
||||
"description": "After ID",
|
||||
"name": "after_id",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@ -243,6 +235,9 @@
|
||||
"204": {
|
||||
"description": "No Content"
|
||||
}
|
||||
},
|
||||
"x-apidocgen": {
|
||||
"skip": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -30,8 +30,7 @@ import (
|
||||
// @Security CoderSessionToken
|
||||
// @Produce json
|
||||
// @Tags Audit
|
||||
// @Param q query string true "Search query"
|
||||
// @Param after_id query string false "After ID" format(uuid)
|
||||
// @Param q query string false "Search query"
|
||||
// @Param limit query int false "Page limit"
|
||||
// @Param offset query int false "Page offset"
|
||||
// @Success 200 {object} codersdk.AuditLogResponse
|
||||
@ -91,6 +90,7 @@ func (api *API) auditLogs(rw http.ResponseWriter, r *http.Request) {
|
||||
// @Param request body codersdk.CreateTestAuditLogRequest true "Audit log request"
|
||||
// @Success 204
|
||||
// @Router /audit/testgenerate [post]
|
||||
// @x-apidocgen {"skip": true}
|
||||
func (api *API) generateFakeAuditLog(rw http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
|
||||
|
Reference in New Issue
Block a user