Repository navigation
Expand file tree
/
Copy pathopenapi.yaml
More file actions
83 lines (83 loc) · 2.09 KB
/
Copy pathopenapi.yaml
File metadata and controls
83 lines (83 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
openapi: 3.0.3
info:
title: NexaGate API
version: 0.2.0
description: Authenticated management and monitoring endpoints for NexaGate.
servers:
- url: https://{host}
variables:
host:
default: localhost
paths:
/healthz:
get:
summary: Health check
responses:
'200': {description: Healthy}
/api/metrics:
get:
summary: Get live system metrics
security: [{sessionCookie: []}]
responses:
'200': {description: Metrics JSON}
'401': {description: Authentication required}
/metrics:
get:
summary: Prometheus metrics
security: [{sessionCookie: []}]
responses:
'200':
description: Prometheus text exposition
content:
text/plain: {}
/ws/metrics:
get:
summary: Stream live metrics over WebSocket
security: [{sessionCookie: []}]
responses:
'101': {description: WebSocket upgrade}
/api/update-status:
get:
summary: Get panel update status
security: [{sessionCookie: []}]
responses:
'200': {description: Update status}
/users:
get:
summary: List users
security: [{sessionCookie: []}]
responses:
'200': {description: HTML user management page}
/api/users:
get:
summary: List users as JSON
security: [{sessionCookie: []}]
responses:
'200': {description: User list}
post:
summary: Create a user
security: [{sessionCookie: []}]
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [name]
properties:
name: {type: string}
days: {type: integer, minimum: 0}
responses:
'201': {description: User created}
/api/audit:
get:
summary: Read recent audit events
security: [{sessionCookie: []}]
responses:
'200': {description: JSON array of recent audit lines}
components:
securitySchemes:
sessionCookie:
type: apiKey
in: cookie
name: nexagate_session