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

fix: increasing comments counts null ptr deref #73

Merged
merged 2 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 57 additions & 6 deletions docs/docs.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Code generated by swaggo/swag. DO NOT EDIT.

// Package docs Code generated by swaggo/swag. DO NOT EDIT
package docs

import "github.com/swaggo/swag"
Expand Down Expand Up @@ -374,6 +373,44 @@ const docTemplate = `{
}
}
},
"/behaviors/{id}/artifacts/": {
"get": {
"description": "Returns a paginated list of artifacts' metadata such as memdumps, created files, etc ..",
"tags": [
"Behavior"
],
"summary": "List of artifacts' metadata.",
"parameters": [
{
"type": "string",
"description": "Behavior report GUID",
"name": "id",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object"
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/errors.ErrorResponse"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/errors.ErrorResponse"
}
}
}
}
},
"/behaviors/{id}/sys-events/": {
"get": {
"description": "Paginates over the list of system events.",
Expand Down Expand Up @@ -414,6 +451,11 @@ const docTemplate = `{
},
"/comments/": {
"post": {
"security": [
{
"Bearer": []
}
],
"description": "Create a new comment.",
"consumes": [
"application/json"
Expand Down Expand Up @@ -522,6 +564,11 @@ const docTemplate = `{
},
"/comments/{id}/": {
"delete": {
"security": [
{
"Bearer": []
}
],
"description": "Deletes a comment by ID.",
"produces": [
"application/json"
Expand Down Expand Up @@ -567,6 +614,11 @@ const docTemplate = `{
}
},
"patch": {
"security": [
{
"Bearer": []
}
],
"description": "Replace a cocument with a new comment's document.",
"consumes": [
"application/json"
Expand Down Expand Up @@ -2526,6 +2578,7 @@ const docTemplate = `{
"properties": {
"agent_log": {},
"api_trace": {},
"artifacts": {},
"capabilities": {},
"env": {},
"proc_tree": {},
Expand Down Expand Up @@ -2581,7 +2634,7 @@ const docTemplate = `{
"entity.File": {
"type": "object",
"properties": {
"behaviors": {},
"behavior_scans": {},
"byte_entropy": {
"type": "array",
"items": {
Expand All @@ -2594,9 +2647,7 @@ const docTemplate = `{
"crc32": {
"type": "string"
},
"default_behavior_id": {
"type": "string"
},
"default_behavior_report": {},
"exif": {
"type": "object",
"additionalProperties": {
Expand Down
60 changes: 56 additions & 4 deletions docs/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading