Skip to content

Commit 90a4665

Browse files
jbrooksukgithub-actions[bot]
authored andcommitted
Generated API specification from cachethq/core@3f77190
1 parent 19a3798 commit 90a4665

File tree

1 file changed

+85
-22
lines changed

1 file changed

+85
-22
lines changed

api-reference/openapi.json

Lines changed: 85 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,38 @@
1010
"url": "http://localhost/api"
1111
}
1212
],
13+
"tags": [
14+
{
15+
"name": "Components"
16+
},
17+
{
18+
"name": "Component Groups"
19+
},
20+
{
21+
"name": "Incidents"
22+
},
23+
{
24+
"name": "Incident Templates"
25+
},
26+
{
27+
"name": "Metrics"
28+
},
29+
{
30+
"name": "Schedules"
31+
},
32+
{
33+
"name": "Incident Updates"
34+
},
35+
{
36+
"name": "Schedule Updates"
37+
},
38+
{
39+
"name": "Metric Points"
40+
},
41+
{
42+
"name": "Cachet"
43+
}
44+
],
1345
"security": [
1446
{
1547
"http": []
@@ -33,7 +65,9 @@
3365
"properties": {
3466
"data": {
3567
"type": "string",
36-
"example": "Pong!"
68+
"enum": [
69+
"Pong!"
70+
]
3771
}
3872
},
3973
"required": [
@@ -67,7 +101,9 @@
67101
"properties": {
68102
"version": {
69103
"type": "string",
70-
"example": "'3.x-dev'"
104+
"enum": [
105+
"'3.x-dev'"
106+
]
71107
}
72108
},
73109
"required": [
@@ -3382,7 +3418,7 @@
33823418
"type": "object",
33833419
"properties": {
33843420
"data": {
3385-
"$ref": "#/components/schemas/ComponentGroup"
3421+
"$ref": "#/components/schemas/ComponentGroupIdentifier"
33863422
}
33873423
},
33883424
"required": [
@@ -3505,6 +3541,25 @@
35053541
],
35063542
"title": "ComponentGroup"
35073543
},
3544+
"ComponentGroupIdentifier": {
3545+
"type": "object",
3546+
"properties": {
3547+
"type": {
3548+
"type": "string",
3549+
"enum": [
3550+
"componentGroups"
3551+
]
3552+
},
3553+
"id": {
3554+
"type": "string"
3555+
}
3556+
},
3557+
"required": [
3558+
"type",
3559+
"id"
3560+
],
3561+
"title": "ComponentGroupIdentifier"
3562+
},
35083563
"ComponentStatusEnum": {
35093564
"type": "integer",
35103565
"enum": [
@@ -4044,7 +4099,7 @@
40444099
"type": "object",
40454100
"properties": {
40464101
"data": {
4047-
"$ref": "#/components/schemas/User"
4102+
"$ref": "#/components/schemas/UserIdentifier"
40484103
}
40494104
},
40504105
"required": [
@@ -4282,6 +4337,25 @@
42824337
],
42834338
"title": "Metric"
42844339
},
4340+
"MetricIdentifier": {
4341+
"type": "object",
4342+
"properties": {
4343+
"type": {
4344+
"type": "string",
4345+
"enum": [
4346+
"metrics"
4347+
]
4348+
},
4349+
"id": {
4350+
"type": "string"
4351+
}
4352+
},
4353+
"required": [
4354+
"type",
4355+
"id"
4356+
],
4357+
"title": "MetricIdentifier"
4358+
},
42854359
"MetricPoint": {
42864360
"type": "object",
42874361
"properties": {
@@ -4360,7 +4434,7 @@
43604434
"type": "object",
43614435
"properties": {
43624436
"data": {
4363-
"$ref": "#/components/schemas/Metric"
4437+
"$ref": "#/components/schemas/MetricIdentifier"
43644438
}
43654439
},
43664440
"required": [
@@ -4902,32 +4976,21 @@
49024976
},
49034977
"title": "UpdateScheduleRequestData"
49044978
},
4905-
"User": {
4979+
"UserIdentifier": {
49064980
"type": "object",
49074981
"properties": {
4908-
"id": {
4909-
"type": "string"
4910-
},
49114982
"type": {
49124983
"type": "string"
49134984
},
4914-
"attributes": {
4915-
"type": "object",
4916-
"properties": {
4917-
"id": {
4918-
"type": "string"
4919-
}
4920-
},
4921-
"required": [
4922-
"id"
4923-
]
4985+
"id": {
4986+
"type": "string"
49244987
}
49254988
},
49264989
"required": [
4927-
"id",
4928-
"type"
4990+
"type",
4991+
"id"
49294992
],
4930-
"title": "User"
4993+
"title": "UserIdentifier"
49314994
}
49324995
},
49334996
"responses": {

0 commit comments

Comments
 (0)