docs: add docs for agents list
ci-agent / build (push) Failing after 22s

This commit is contained in:
d3m0k1d
2026-04-03 23:01:59 +03:00
parent 83427193bc
commit 27e82f80f1
5 changed files with 129 additions and 28 deletions
+44 -1
View File
@@ -14,7 +14,50 @@ const docTemplate = `{
},
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {},
"paths": {
"/agents": {
"get": {
"description": "Returns a list of all agents currently connected via gRPC streaming",
"produces": [
"application/json"
],
"tags": [
"agents"
],
"summary": "Get connected agents",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/internal_handlers.AgentInfo"
}
}
}
}
}
}
},
"definitions": {
"internal_handlers.AgentInfo": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"services": {
"type": "array",
"items": {
"type": "string"
}
},
"token": {
"type": "string"
}
}
}
},
"securityDefinitions": {
"Bearer": {
"description": "Type \"Bearer\" followed by a space and the JWT token.",
+44 -1
View File
@@ -3,7 +3,50 @@
"info": {
"contact": {}
},
"paths": {},
"paths": {
"/agents": {
"get": {
"description": "Returns a list of all agents currently connected via gRPC streaming",
"produces": [
"application/json"
],
"tags": [
"agents"
],
"summary": "Get connected agents",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/internal_handlers.AgentInfo"
}
}
}
}
}
}
},
"definitions": {
"internal_handlers.AgentInfo": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"services": {
"type": "array",
"items": {
"type": "string"
}
},
"token": {
"type": "string"
}
}
}
},
"securityDefinitions": {
"Bearer": {
"description": "Type \"Bearer\" followed by a space and the JWT token.",
+28 -1
View File
@@ -1,6 +1,33 @@
definitions:
internal_handlers.AgentInfo:
properties:
label:
type: string
services:
items:
type: string
type: array
token:
type: string
type: object
info:
contact: {}
paths: {}
paths:
/agents:
get:
description: Returns a list of all agents currently connected via gRPC streaming
produces:
- application/json
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/internal_handlers.AgentInfo'
type: array
summary: Get connected agents
tags:
- agents
securityDefinitions:
Bearer:
description: Type "Bearer" followed by a space and the JWT token.