@platformatic/watt-admin 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,132 +9,6 @@
9
9
  "schemas": {}
10
10
  },
11
11
  "paths": {
12
- "/runtimes": {
13
- "get": {
14
- "parameters": [
15
- {
16
- "schema": {
17
- "type": "boolean",
18
- "default": false
19
- },
20
- "in": "query",
21
- "name": "includeAdmin",
22
- "required": false
23
- }
24
- ],
25
- "responses": {
26
- "200": {
27
- "description": "Default Response",
28
- "content": {
29
- "application/json": {
30
- "schema": {
31
- "type": "array",
32
- "items": {
33
- "type": "object",
34
- "additionalProperties": false,
35
- "properties": {
36
- "pid": {
37
- "type": "integer"
38
- },
39
- "cwd": {
40
- "type": "string"
41
- },
42
- "argv": {
43
- "type": "array",
44
- "items": {
45
- "type": "string"
46
- }
47
- },
48
- "uptimeSeconds": {
49
- "type": "number"
50
- },
51
- "execPath": {
52
- "type": "string"
53
- },
54
- "nodeVersion": {
55
- "type": "string"
56
- },
57
- "projectDir": {
58
- "type": "string"
59
- },
60
- "packageName": {
61
- "type": "string"
62
- },
63
- "packageVersion": {
64
- "type": "string"
65
- },
66
- "url": {
67
- "type": "string"
68
- },
69
- "platformaticVersion": {
70
- "type": "string"
71
- },
72
- "selected": {
73
- "type": "boolean"
74
- }
75
- },
76
- "required": [
77
- "pid",
78
- "cwd",
79
- "argv",
80
- "uptimeSeconds",
81
- "execPath",
82
- "nodeVersion",
83
- "projectDir",
84
- "packageName",
85
- "packageVersion",
86
- "url",
87
- "platformaticVersion",
88
- "selected"
89
- ]
90
- }
91
- }
92
- }
93
- }
94
- }
95
- }
96
- }
97
- },
98
- "/runtimes/{pid}/health": {
99
- "get": {
100
- "parameters": [
101
- {
102
- "schema": {
103
- "type": "number"
104
- },
105
- "in": "path",
106
- "name": "pid",
107
- "required": true
108
- }
109
- ],
110
- "responses": {
111
- "200": {
112
- "description": "Default Response",
113
- "content": {
114
- "application/json": {
115
- "schema": {
116
- "type": "object",
117
- "additionalProperties": false,
118
- "properties": {
119
- "status": {
120
- "type": "string",
121
- "enum": [
122
- "OK",
123
- "KO"
124
- ],
125
- "description": "Status can only be 'OK' or 'KO'"
126
- }
127
- },
128
- "required": [
129
- "status"
130
- ]
131
- }
132
- }
133
- }
134
- }
135
- }
136
- }
137
- },
138
12
  "/runtimes/{pid}/metrics": {
139
13
  "get": {
140
14
  "parameters": [
@@ -600,6 +474,132 @@
600
474
  }
601
475
  }
602
476
  },
477
+ "/runtimes": {
478
+ "get": {
479
+ "parameters": [
480
+ {
481
+ "schema": {
482
+ "type": "boolean",
483
+ "default": false
484
+ },
485
+ "in": "query",
486
+ "name": "includeAdmin",
487
+ "required": false
488
+ }
489
+ ],
490
+ "responses": {
491
+ "200": {
492
+ "description": "Default Response",
493
+ "content": {
494
+ "application/json": {
495
+ "schema": {
496
+ "type": "array",
497
+ "items": {
498
+ "type": "object",
499
+ "additionalProperties": false,
500
+ "properties": {
501
+ "pid": {
502
+ "type": "integer"
503
+ },
504
+ "cwd": {
505
+ "type": "string"
506
+ },
507
+ "argv": {
508
+ "type": "array",
509
+ "items": {
510
+ "type": "string"
511
+ }
512
+ },
513
+ "uptimeSeconds": {
514
+ "type": "number"
515
+ },
516
+ "execPath": {
517
+ "type": "string"
518
+ },
519
+ "nodeVersion": {
520
+ "type": "string"
521
+ },
522
+ "projectDir": {
523
+ "type": "string"
524
+ },
525
+ "packageName": {
526
+ "type": "string"
527
+ },
528
+ "packageVersion": {
529
+ "type": "string"
530
+ },
531
+ "url": {
532
+ "type": "string"
533
+ },
534
+ "platformaticVersion": {
535
+ "type": "string"
536
+ },
537
+ "selected": {
538
+ "type": "boolean"
539
+ }
540
+ },
541
+ "required": [
542
+ "pid",
543
+ "cwd",
544
+ "argv",
545
+ "uptimeSeconds",
546
+ "execPath",
547
+ "nodeVersion",
548
+ "projectDir",
549
+ "packageName",
550
+ "packageVersion",
551
+ "url",
552
+ "platformaticVersion",
553
+ "selected"
554
+ ]
555
+ }
556
+ }
557
+ }
558
+ }
559
+ }
560
+ }
561
+ }
562
+ },
563
+ "/runtimes/{pid}/health": {
564
+ "get": {
565
+ "parameters": [
566
+ {
567
+ "schema": {
568
+ "type": "number"
569
+ },
570
+ "in": "path",
571
+ "name": "pid",
572
+ "required": true
573
+ }
574
+ ],
575
+ "responses": {
576
+ "200": {
577
+ "description": "Default Response",
578
+ "content": {
579
+ "application/json": {
580
+ "schema": {
581
+ "type": "object",
582
+ "additionalProperties": false,
583
+ "properties": {
584
+ "status": {
585
+ "type": "string",
586
+ "enum": [
587
+ "OK",
588
+ "KO"
589
+ ],
590
+ "description": "Status can only be 'OK' or 'KO'"
591
+ }
592
+ },
593
+ "required": [
594
+ "status"
595
+ ]
596
+ }
597
+ }
598
+ }
599
+ }
600
+ }
601
+ }
602
+ },
603
603
  "/runtimes/{pid}/services": {
604
604
  "get": {
605
605
  "parameters": [
@@ -722,25 +722,6 @@
722
722
  }
723
723
  }
724
724
  },
725
- "/runtimes/{pid}/logs": {
726
- "get": {
727
- "parameters": [
728
- {
729
- "schema": {
730
- "type": "number"
731
- },
732
- "in": "path",
733
- "name": "pid",
734
- "required": true
735
- }
736
- ],
737
- "responses": {
738
- "200": {
739
- "description": "Default Response"
740
- }
741
- }
742
- }
743
- },
744
725
  "/runtimes/{pid}/openapi/{serviceId}": {
745
726
  "get": {
746
727
  "parameters": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://schemas.platformatic.dev/@platformatic/service/2.60.0.json",
2
+ "$schema": "https://schemas.platformatic.dev/@platformatic/service/2.67.0.json",
3
3
  "service": {
4
4
  "openapi": true
5
5
  },
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://schemas.platformatic.dev/@platformatic/composer/2.60.0.json",
2
+ "$schema": "https://schemas.platformatic.dev/@platformatic/composer/2.67.0.json",
3
3
  "composer": {
4
4
  "services": [
5
5
  {
@@ -7,6 +7,11 @@
7
7
  "openapi": {
8
8
  "url": "/documentation/json",
9
9
  "prefix": "/api"
10
+ },
11
+ "proxy": {
12
+ "ws": {
13
+ },
14
+ "prefix": "/api"
10
15
  }
11
16
  },
12
17
  {