forked from bluemoonfoundry/daz-script-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1053 lines (998 loc) · 29.9 KB
/
Copy pathopenapi.yaml
File metadata and controls
1053 lines (998 loc) · 29.9 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: DazScript Server API
description: |
HTTP API for remote DazScript execution inside DAZ Studio.
## Authentication
All endpoints except `/status`, `/health`, and `/metrics` require a token
when authentication is enabled (default: on). Pass the token in either:
- `X-API-Token: <token>` header
- `Authorization: Bearer <token>` header
The token is auto-generated on first run and stored at
`~/.daz3d/dazscriptserver_token.txt`.
## Threading model
All DazScript execution happens serially on DAZ Studio's main Qt thread.
"Concurrent" means HTTP connections are accepted concurrently, but scripts
queue behind each other. The `/execute/async` family lets callers submit
work without blocking their HTTP connection.
version: 2.7.2
contact:
name: Blue Moon Foundry
url: https://github.com/bluemoonfoundry/daz-script-server/issues
license:
name: AGPL v3
url: https://www.gnu.org/licenses/agpl-3.0.html
servers:
- url: http://127.0.0.1:18811
description: Default local server
tags:
- name: Server
description: Server status and health
- name: Execute
description: Synchronous script execution
- name: Registry
description: Registered script management
- name: Async
description: Asynchronous script execution and request lifecycle
- name: SceneEvents
description: Real-time DAZ Studio scene change notifications via SSE (v2.3.0+)
- name: Render
description: Render job submission, progress streaming, and cancellation (v2.6.0+)
paths:
/status:
get:
tags: [Server]
summary: Check if the server is running
operationId: getStatus
security: []
responses:
'200':
description: Server is running
content:
application/json:
schema:
$ref: '#/components/schemas/StatusResponse'
example:
running: true
version: "2.7.2"
/health:
get:
tags: [Server]
summary: Health check for monitoring and load balancers
operationId: getHealth
security: []
responses:
'200':
description: Health status
content:
application/json:
schema:
$ref: '#/components/schemas/HealthResponse'
example:
status: ok
version: "2.7.2"
running: true
auth_enabled: true
active_requests: 2
uptime_seconds: 3600
/metrics:
get:
tags: [Server]
summary: Request statistics and performance counters
operationId: getMetrics
security: []
responses:
'200':
description: Metrics
content:
application/json:
schema:
$ref: '#/components/schemas/MetricsResponse'
example:
total_requests: 1523
successful_requests: 1489
failed_requests: 28
auth_failures: 6
active_requests: 2
uptime_seconds: 86400
success_rate_percent: 97.77
/execute:
post:
tags: [Execute]
summary: Execute a DazScript synchronously and return the result
operationId: execute
security:
- apiToken: []
- bearerToken: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteRequest'
examples:
inline:
summary: Inline script
value:
script: "(function(){ return Scene.getNumNodes(); })()"
args:
label: "FN Ethan"
file:
summary: Script file
value:
scriptFile: "/path/to/script.dsa"
args:
width: 1920
height: 1080
responses:
'200':
description: Script executed (check `success` field — errors also return 200)
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'413':
$ref: '#/components/responses/TooLarge'
'429':
$ref: '#/components/responses/TooManyRequests'
/scripts/register:
post:
tags: [Registry]
summary: Register or update a named script
operationId: registerScript
security:
- apiToken: []
- bearerToken: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterRequest'
example:
name: scene-info
description: Return scene node count
script: "(function(){ return { nodes: Scene.getNumNodes() }; })()"
responses:
'200':
description: Script registered (or updated)
content:
application/json:
schema:
$ref: '#/components/schemas/RegisterResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/scripts:
get:
tags: [Registry]
summary: List all registered scripts
operationId: listScripts
security:
- apiToken: []
- bearerToken: []
responses:
'200':
description: Script list
content:
application/json:
schema:
$ref: '#/components/schemas/ScriptListResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/scripts/{id}/execute:
post:
tags: [Registry]
summary: Execute a registered script by ID
operationId: executeScript
security:
- apiToken: []
- bearerToken: []
parameters:
- $ref: '#/components/parameters/ScriptId'
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/ScriptExecuteRequest'
example:
args:
label: "FN Ethan"
responses:
'200':
description: Script executed
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
/scripts/{id}:
delete:
tags: [Registry]
summary: Remove a script from the registry
operationId: deleteScript
security:
- apiToken: []
- bearerToken: []
parameters:
- $ref: '#/components/parameters/ScriptId'
responses:
'200':
description: Script removed
content:
application/json:
schema:
$ref: '#/components/schemas/DeleteScriptResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/execute/async:
post:
tags: [Async]
summary: Submit an inline script for asynchronous execution
operationId: executeAsync
security:
- apiToken: []
- bearerToken: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ExecuteRequest'
responses:
'200':
description: Request queued — poll `/requests/{id}/status` for progress
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncSubmitResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'413':
$ref: '#/components/responses/TooLarge'
'429':
$ref: '#/components/responses/TooManyRequests'
/scripts/{id}/async:
post:
tags: [Async]
summary: Submit a registered script for asynchronous execution
operationId: executeScriptAsync
security:
- apiToken: []
- bearerToken: []
parameters:
- $ref: '#/components/parameters/ScriptId'
requestBody:
required: false
content:
application/json:
schema:
$ref: '#/components/schemas/ScriptExecuteRequest'
responses:
'200':
description: Request queued
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncSubmitResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/TooManyRequests'
/requests:
get:
tags: [Async]
summary: List all active and recently completed async requests
operationId: listRequests
security:
- apiToken: []
- bearerToken: []
responses:
'200':
description: Request list
content:
application/json:
schema:
$ref: '#/components/schemas/RequestListResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/requests/{id}/status:
get:
tags: [Async]
summary: Poll the status of an async request
operationId: getRequestStatus
security:
- apiToken: []
- bearerToken: []
parameters:
- $ref: '#/components/parameters/RequestId'
responses:
'200':
description: Request status
content:
application/json:
schema:
$ref: '#/components/schemas/RequestStatusResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/requests/{id}/result:
get:
tags: [Async]
summary: Fetch the final result of an async request
description: |
Returns the script result once execution is complete.
Use `?wait=true` to long-poll until completion instead of polling
`/requests/{id}/status` in a loop.
operationId: getRequestResult
security:
- apiToken: []
- bearerToken: []
parameters:
- $ref: '#/components/parameters/RequestId'
- name: wait
in: query
description: Block until the request completes
schema:
type: boolean
default: false
- name: timeout
in: query
description: Maximum seconds to wait when `wait=true`
schema:
type: integer
default: 300
minimum: 1
maximum: 3600
responses:
'200':
description: Execution result
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncResultResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/requests/{id}:
delete:
tags: [Async]
summary: Cancel a queued or running async request
description: |
- `queued` requests are removed from the queue immediately.
- `running` requests have a cancel flag set and `killRender()` called;
DAZ Studio honours the flag when the script returns.
operationId: cancelRequest
security:
- apiToken: []
- bearerToken: []
parameters:
- $ref: '#/components/parameters/RequestId'
responses:
'200':
description: Request cancelled
content:
application/json:
schema:
$ref: '#/components/schemas/CancelResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/scene/events:
get:
tags: [SceneEvents]
summary: Subscribe to real-time scene-change notifications (SSE)
description: |
Opens a persistent connection and streams DAZ Studio scene-change events
as Server-Sent Events. A `:keepalive` comment is sent every 3 seconds of
idle time so clients can detect disconnects.
The connection stays open until the client disconnects or the server stops.
All configured security checks (auth, IP whitelist) apply.
operationId: sceneEvents
security:
- apiToken: []
- bearerToken: []
parameters:
- name: filter
in: query
required: false
description: |
Comma-separated list of event categories to receive. Omit to receive all.
Values: `node`, `skeleton`, `light`, `camera`, `selection`, `scene`, `time`, `render`
schema:
type: string
example: "node,scene"
responses:
'200':
description: SSE stream (text/event-stream)
content:
text/event-stream:
schema:
type: string
description: |
Newline-delimited SSE events. Each event is:
`data: {"type":"<event_type>","ts":<unix_ms>,"data":{...}}\n\n`
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
/render:
post:
tags: [Render]
summary: Submit a render job
description: |
Submits a render job to DAZ Studio and returns a `request_id` immediately.
Use `GET /render/{id}/progress` to stream live progress, or
`GET /requests/{id}/result` (with `?wait=true`) to long-poll for completion.
operationId: submitRender
security:
- apiToken: []
- bearerToken: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RenderRequest'
responses:
'200':
description: Render job submitted
content:
application/json:
schema:
$ref: '#/components/schemas/AsyncSubmitResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/TooManyRequests'
/render/batch:
post:
tags: [Render]
summary: Submit multiple render variants in one request
description: |
Each variant can override morphs and output path. Renders execute
sequentially on DAZ Studio's main thread.
operationId: submitRenderBatch
security:
- apiToken: []
- bearerToken: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RenderBatchRequest'
responses:
'200':
description: Batch submitted; one `request_id` per variant
content:
application/json:
schema:
type: object
required: [request_ids]
properties:
request_ids:
type: array
items:
type: string
description: One `request_id` per variant, in submission order
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/TooManyRequests'
/render/{id}/progress:
get:
tags: [Render]
summary: Stream render progress via SSE
description: |
Opens an SSE connection for the given render job and delivers real-time
progress events until the render completes or fails.
operationId: renderProgress
security:
- apiToken: []
- bearerToken: []
parameters:
- $ref: '#/components/parameters/RequestId'
responses:
'200':
description: SSE stream of render progress events
content:
text/event-stream:
schema:
type: string
description: |
Progress events:
`data: {"stage":"rendering","progress":0.42,"elapsed_ms":4200}`
Completion event:
`data: {"stage":"complete","progress":1.0,"output_path":"/path/render.png","elapsed_ms":9800}`
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
/render/{id}/cancel:
post:
tags: [Render]
summary: Cancel a queued or running render job
description: |
Returns 400 if the `request_id` belongs to a non-render request, so
callers get a clear error rather than silently cancelling the wrong job.
operationId: cancelRender
security:
- apiToken: []
- bearerToken: []
parameters:
- $ref: '#/components/parameters/RequestId'
responses:
'200':
description: Render job cancelled
content:
application/json:
schema:
$ref: '#/components/schemas/CancelResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
components:
securitySchemes:
apiToken:
type: apiKey
in: header
name: X-API-Token
bearerToken:
type: http
scheme: bearer
parameters:
ScriptId:
name: id
in: path
required: true
description: Script name (1-64 chars, `[A-Za-z0-9_-]`)
schema:
type: string
pattern: '^[A-Za-z0-9_-]{1,64}$'
RequestId:
name: id
in: path
required: true
description: Async request ID (8-char UUID)
schema:
type: string
minLength: 8
maxLength: 8
schemas:
FigureMorphs:
type: object
required: [figure_label, morphs]
properties:
figure_label:
type: string
description: Scene-panel label of the figure (e.g. "Genesis 9")
example: "Genesis 9"
morphs:
type: object
additionalProperties:
type: number
format: float
description: Morph name → value (0.0–1.0) map
example:
eCTRLSmileSimple: 1.0
RenderRequest:
type: object
properties:
output_path:
type: string
description: Absolute path for the output image
example: "C:/renders/out.png"
width:
type: integer
description: Render width in pixels
example: 1920
height:
type: integer
description: Render height in pixels
example: 1080
camera:
type: string
description: Scene-panel label of the camera to use
example: "Camera 1"
figure_morphs:
type: array
items:
$ref: '#/components/schemas/FigureMorphs'
description: Per-figure morph overrides applied before rendering
RenderVariant:
type: object
properties:
label:
type: string
description: Identifier for this variant (used in output filename if no output_path)
example: "smile"
output_path:
type: string
description: Absolute path for this variant's output image
figure_morphs:
type: array
items:
$ref: '#/components/schemas/FigureMorphs'
description: Per-figure morph overrides for this variant
RenderBatchRequest:
type: object
required: [variants]
properties:
width:
type: integer
example: 1920
height:
type: integer
example: 1080
camera:
type: string
example: "Camera 1"
variants:
type: array
items:
$ref: '#/components/schemas/RenderVariant'
description: List of render variants to submit sequentially
ExecuteRequest:
type: object
description: |
Provide either `script` (inline code) or `scriptFile` (absolute path).
If both are given, `scriptFile` takes precedence.
properties:
script:
type: string
description: Inline DazScript source code (max configurable, default 1 MB)
example: "(function(){ return Scene.getNumNodes(); })()"
scriptFile:
type: string
description: Absolute path to a `.dsa` file on the DAZ Studio machine
example: "/path/to/render.dsa"
args:
type: object
description: Arbitrary JSON object; accessible inside the script via `getArguments()[0]`
additionalProperties: true
example:
width: 1920
height: 1080
ExecuteResponse:
type: object
required: [success, result, output, error, request_id]
properties:
success:
type: boolean
description: "`true` if the script ran without throwing"
result:
description: Script return value (any JSON-serialisable type), or `null` on error
nullable: true
output:
type: array
items:
type: string
description: Lines captured from `print()` calls (max 10,000)
error:
type: string
nullable: true
description: Error message with line number, or `null`
request_id:
type: string
description: 8-character ID for log correlation
example: "a3f2b891"
RegisterRequest:
type: object
required: [name, script]
properties:
name:
type: string
description: Script ID — 1-64 chars, `[A-Za-z0-9_-]` only
pattern: '^[A-Za-z0-9_-]{1,64}$'
example: scene-info
script:
type: string
description: DazScript source code
description:
type: string
description: Human-readable description
RegisterResponse:
type: object
required: [success, id, registered_at, updated]
properties:
success:
type: boolean
id:
type: string
example: scene-info
registered_at:
type: string
format: date-time
example: "2026-05-14T10:15:00"
updated:
type: boolean
description: "`true` if this overwrote an existing registration"
ScriptListResponse:
type: object
required: [scripts, count]
properties:
scripts:
type: array
items:
type: object
required: [id, registered_at]
properties:
id:
type: string
description:
type: string
registered_at:
type: string
format: date-time
count:
type: integer
ScriptExecuteRequest:
type: object
properties:
args:
type: object
additionalProperties: true
DeleteScriptResponse:
type: object
required: [success, id]
properties:
success:
type: boolean
id:
type: string
AsyncSubmitResponse:
type: object
required: [request_id, status, submitted_at]
properties:
request_id:
type: string
example: "a3f2b891"
status:
type: string
enum: [queued]
submitted_at:
type: string
format: date-time
RequestListResponse:
type: object
required: [requests, total, queued, running, completed]
properties:
requests:
type: array
items:
$ref: '#/components/schemas/RequestSummary'
total:
type: integer
queued:
type: integer
running:
type: integer
completed:
type: integer
RequestSummary:
type: object
required: [request_id, status, submitted_at]
properties:
request_id:
type: string
status:
$ref: '#/components/schemas/RequestStatus'
submitted_at:
type: string
format: date-time
elapsed_ms:
type: integer
RequestStatusResponse:
type: object
required: [request_id, status]
properties:
request_id:
type: string
status:
$ref: '#/components/schemas/RequestStatus'
progress:
type: number
format: float
minimum: 0
maximum: 1
elapsed_ms:
type: integer
queue_position:
type: integer
description: Only meaningful when `status` is `queued`
AsyncResultResponse:
allOf:
- $ref: '#/components/schemas/ExecuteResponse'
- type: object
required: [duration_ms, completed_at, status]
properties:
duration_ms:
type: integer
completed_at:
type: string
format: date-time
status:
$ref: '#/components/schemas/RequestStatus'
CancelResponse:
type: object
required: [request_id, status, cancelled_at]
properties:
request_id:
type: string
status:
type: string
enum: [cancelled]
cancelled_at:
type: string
format: date-time
RequestStatus:
type: string
enum: [queued, running, completed, failed, cancelled]
StatusResponse:
type: object
required: [running, version]
properties:
running:
type: boolean
version:
type: string
HealthResponse:
type: object
required: [status, version, running, auth_enabled, active_requests, uptime_seconds]
properties:
status:
type: string
enum: [ok]
version:
type: string
running:
type: boolean
auth_enabled:
type: boolean
active_requests:
type: integer
uptime_seconds:
type: integer
MetricsResponse:
type: object
required: [total_requests, successful_requests, failed_requests, auth_failures, active_requests, uptime_seconds, success_rate_percent]
properties:
total_requests:
type: integer
successful_requests:
type: integer
failed_requests:
type: integer
auth_failures:
type: integer
active_requests:
type: integer
uptime_seconds:
type: integer
success_rate_percent:
type: number
format: float
ErrorResponse:
type: object
required: [success, error]
properties:
success:
type: boolean
enum: [false]
error:
type: string
responses:
BadRequest: