solarwinds-itsm-api-definitions 0.0.8 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/definitions/common/components.json +189 -123
- data/lib/definitions/common/examples/incident.json +28 -35
- data/lib/definitions/common/examples/problem.json +108 -0
- data/lib/definitions/common/examples/user.json +76 -0
- data/lib/definitions/common/schemas/incident.json +32 -68
- data/lib/definitions/common/schemas/problem.json +67 -0
- data/lib/definitions/common/schemas/user.json +54 -0
- data/lib/definitions/openapi.json +9 -6
- data/lib/definitions/paths/incidents/incident_by_id.json +27 -9
- data/lib/definitions/paths/incidents/incidents.json +33 -5
- data/lib/definitions/paths/problems/problem_by_id.json +84 -0
- data/lib/definitions/paths/problems/problems.json +69 -0
- data/lib/definitions/paths/users/user_by_id.json +84 -0
- data/lib/definitions/paths/users/users.json +69 -0
- data/lib/resolved_schema/resolved_schema.json +1 -1
- metadata +13 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdeef30e6c481c8f44e37d4e18207feac682d505b51736256a7ac96604d105c6
|
4
|
+
data.tar.gz: 68c9235b9579912c4ede1e0ab9d5e51fcd8b5eeecd36aab4ceb7e28b4005a781
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b6d166fc3c96f5dae026d408b3c5e212bbaa9c46a40a550a502305ad9d3b123ca4f7d7734377caa8bf24b5eb4743f4b793f0431e6b82598b52f404559d3b531
|
7
|
+
data.tar.gz: d57042d57130302d6d36265a04490910f8aaf98b749b96bb0dabee360224f940b114f6f50b0b40dab3695994ff2b29f373fad781e610cd3c582a988c56f0a29c
|
@@ -1,153 +1,219 @@
|
|
1
1
|
{
|
2
2
|
"components": {
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
"request": {
|
4
|
+
"parameters": {
|
5
|
+
"token_param": {
|
6
|
+
"name": "X-Samanage-Authorization",
|
7
|
+
"in": "header",
|
8
|
+
"schema": { "type": "string" },
|
9
|
+
"example": "Bearer TOKEN"
|
10
|
+
},
|
11
|
+
"id_param": {
|
12
|
+
"name": "id",
|
13
|
+
"in": "path",
|
14
|
+
"schema": { "type": "string" },
|
15
|
+
"required": true,
|
16
|
+
"description": "Numeric ID of the object to get or update"
|
17
|
+
}
|
9
18
|
},
|
10
|
-
"
|
11
|
-
"
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
19
|
+
"schemas": {
|
20
|
+
"association_by_name": {
|
21
|
+
"type": "object",
|
22
|
+
"oneOf": [{
|
23
|
+
"type": "object",
|
24
|
+
"required": ["name"],
|
25
|
+
"properties": {
|
26
|
+
"name": { "type": "string" }
|
27
|
+
}
|
28
|
+
},
|
29
|
+
{ "enum": ["nil", "", null] }]
|
30
|
+
},
|
31
|
+
"association_by_email": {
|
32
|
+
"type": "object",
|
33
|
+
"oneOf": [{
|
34
|
+
"type": "object",
|
35
|
+
"required": ["email"],
|
36
|
+
"properties": {
|
37
|
+
"email": { "type": "string" }
|
38
|
+
}
|
39
|
+
},
|
40
|
+
{ "enum": ["nil", "", null] }]
|
41
|
+
},
|
42
|
+
"numbers_array": {
|
43
|
+
"type": "array",
|
44
|
+
"items": {
|
45
|
+
"type": "object",
|
46
|
+
"properties": {
|
47
|
+
"number": { "type": "string" }
|
48
|
+
}
|
49
|
+
}
|
50
|
+
},
|
51
|
+
"custom_field": {
|
52
|
+
"type": "object",
|
53
|
+
"required": ["name", "value"],
|
54
|
+
"properties": {
|
55
|
+
"name": { "type": "string" },
|
56
|
+
"value": { "type": "string" }
|
57
|
+
}
|
58
|
+
},
|
59
|
+
"custom_field_value": {
|
60
|
+
"type": "array",
|
61
|
+
"items": { "$ref": "components.json#/components/request/schemas/custom_field" }
|
62
|
+
},
|
63
|
+
"custom_field_values": {
|
64
|
+
"type": "object",
|
65
|
+
"required": ["custom_field_value"],
|
66
|
+
"properties": {
|
67
|
+
"custom_field_value": { "$ref": "components.json#/components/request/schemas/custom_field_value" }
|
68
|
+
}
|
69
|
+
},
|
70
|
+
"custom_fields_value": {
|
71
|
+
"type": "array",
|
72
|
+
"items": { "$ref": "components.json#/components/request/schemas/custom_field" }
|
73
|
+
},
|
74
|
+
"custom_fields_values": {
|
75
|
+
"type": "object",
|
76
|
+
"required": ["custom_fields_value"],
|
77
|
+
"properties": { "custom_fields_value": { "$ref": "components.json#/components/request/schemas/custom_fields_value" } }
|
78
|
+
},
|
79
|
+
"custom_field_by_id": {
|
80
|
+
"type": "object",
|
81
|
+
"properties": { "custom_field_id": { "type": "integer" }, "value": { "type": "string" } }
|
82
|
+
},
|
83
|
+
"custom_fields_values_attributes": {
|
84
|
+
"type": "array",
|
85
|
+
"items": { "$ref": "components.json#/components/request/schemas/custom_field_by_id" }
|
86
|
+
}
|
16
87
|
}
|
17
88
|
},
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
"
|
89
|
+
"response": {
|
90
|
+
"schemas": {
|
91
|
+
"id": {
|
92
|
+
"readOnly": true,
|
93
|
+
"oneOf": [{ "type": "string" }, { "type": "integer" }]
|
94
|
+
},
|
95
|
+
"custom_field": {
|
96
|
+
"type": "object",
|
97
|
+
"properties": {
|
98
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
99
|
+
"custom_field_id": { "$ref": "components.json#/components/response/schemas/id" },
|
100
|
+
"name": { "type": "string" },
|
101
|
+
"value": { "type": "string" },
|
102
|
+
"options": { "type": "string" },
|
103
|
+
"type_name": { "type": "string" }
|
104
|
+
}
|
105
|
+
},
|
106
|
+
"custom_field_values": {
|
107
|
+
"type": "array",
|
108
|
+
"items": { "$ref": "components.json#/components/response/schemas/custom_field" }
|
109
|
+
},
|
110
|
+
"category_subcategory": {
|
25
111
|
"type": "object",
|
26
|
-
"required": ["name"],
|
27
112
|
"properties": {
|
28
|
-
"
|
113
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
114
|
+
"name": { "type": "string" },
|
115
|
+
"default_tags": { "type": "string" },
|
116
|
+
"parent_id": { "$ref": "components.json#/components/response/schemas/id" },
|
117
|
+
"default_assignee_id": { "$ref": "components.json#/components/response/schemas/id" }
|
29
118
|
}
|
30
119
|
},
|
31
|
-
|
32
|
-
},
|
33
|
-
"association_by_email": {
|
34
|
-
"type": "object",
|
35
|
-
"oneOf": [{
|
120
|
+
"avatar": {
|
36
121
|
"type": "object",
|
37
|
-
"required": ["email"],
|
38
122
|
"properties": {
|
39
|
-
"
|
123
|
+
"type": { "type": "string" },
|
124
|
+
"color": { "type": "string" },
|
125
|
+
"initials": {
|
126
|
+
"type": "string",
|
127
|
+
"minLength": 2,
|
128
|
+
"maxLength": 2
|
129
|
+
}
|
40
130
|
}
|
41
131
|
},
|
42
|
-
|
43
|
-
},
|
44
|
-
"id": {
|
45
|
-
"readOnly": true,
|
46
|
-
"oneOf": [{ "type": "string" }, { "type": "integer" }]
|
47
|
-
},
|
48
|
-
"custom_field": {
|
49
|
-
"type": "object",
|
50
|
-
"oneOf": [{
|
132
|
+
"assignee_details": {
|
51
133
|
"type": "object",
|
52
|
-
"required": ["name", "value"],
|
53
134
|
"properties": {
|
135
|
+
"group_id": { "$ref": "components.json#/components/common/schemas/association_by_id" },
|
136
|
+
"is_user": { "oneOf": [{ "type": "string" }, { "type": "boolean" }] },
|
137
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
54
138
|
"name": { "type": "string" },
|
55
|
-
"
|
139
|
+
"email": { "type": "string" },
|
140
|
+
"avatar": { "$ref": "components.json#/components/response/schemas/avatar" }
|
56
141
|
}
|
57
|
-
}
|
58
|
-
|
59
|
-
"custom_field_value": {
|
60
|
-
"type": "array",
|
61
|
-
"items": {
|
62
|
-
"allOf": [{ "$ref": "components.json#/components/schemas/custom_field" }]
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"custom_field_values": {
|
66
|
-
"type": "object",
|
67
|
-
"oneOf": [{
|
142
|
+
},
|
143
|
+
"requester_details": {
|
68
144
|
"type": "object",
|
69
|
-
"required": ["custom_field_value"],
|
70
145
|
"properties": {
|
71
|
-
"
|
146
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
147
|
+
"account_id": { "$ref": "components.json#/components/response/schemas/id" },
|
148
|
+
"user_id": { "$ref": "components.json#/components/response/schemas/id" },
|
149
|
+
"email": { "type": "string" },
|
150
|
+
"name": { "type": "string" },
|
151
|
+
"disabled": { "type": "boolean" },
|
152
|
+
"avatar": { "$ref": "components.json#/components/response/schemas/avatar" }
|
72
153
|
}
|
73
|
-
}
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
"default_assignee_id": { "$ref": "components.json#/components/schemas/id" }
|
83
|
-
}
|
84
|
-
},
|
85
|
-
"avatar": {
|
86
|
-
"type": "object",
|
87
|
-
"properties": {
|
88
|
-
"type": { "type": "string" },
|
89
|
-
"color": { "type": "string" },
|
90
|
-
"initials": {
|
91
|
-
"type": "string",
|
92
|
-
"minLength": 2,
|
93
|
-
"maxLength": 2
|
154
|
+
},
|
155
|
+
"site_response": {
|
156
|
+
"type": "object",
|
157
|
+
"properties": {
|
158
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
159
|
+
"name": { "type": "string" },
|
160
|
+
"description": { "type": "string" },
|
161
|
+
"location": { "type": "string" },
|
162
|
+
"timezone": { "type": "string" }
|
94
163
|
}
|
95
|
-
}
|
96
|
-
|
97
|
-
"requester_assignee_details": {
|
98
|
-
"type": "object",
|
99
|
-
"properties": {
|
100
|
-
"group_id": { "$ref": "components.json#/components/schemas/association_by_id" },
|
101
|
-
"is_user": { "oneOf": [{ "type": "string" }, { "type": "boolean" }] },
|
102
|
-
"id": { "$ref": "components.json#/components/schemas/id" },
|
103
|
-
"name": { "type": "string" },
|
104
|
-
"email": { "type": "string" },
|
105
|
-
"avatar": { "$ref": "components.json#/components/schemas/avatar" }
|
106
|
-
}
|
107
|
-
},
|
108
|
-
"site_response": {
|
109
|
-
"type": "object",
|
110
|
-
"properties": {
|
111
|
-
"id": { "$ref": "components.json#/components/schemas/id" },
|
112
|
-
"name": { "type": "string" },
|
113
|
-
"description": { "type": "string" },
|
114
|
-
"location": { "type": "string" },
|
115
|
-
"timezone": { "type": "string" }
|
116
|
-
}
|
117
|
-
},
|
118
|
-
"department_response": {
|
119
|
-
"type": "object",
|
120
|
-
"properties": {
|
121
|
-
"id": { "$ref": "components.json#/components/schemas/id" },
|
122
|
-
"name": { "type": "string" },
|
123
|
-
"description": { "type": "string" },
|
124
|
-
"default_assignee_id": { "$ref": "components.json#/components/schemas/id" }
|
125
|
-
}
|
126
|
-
},
|
127
|
-
"ids_array": {
|
128
|
-
"type": "array",
|
129
|
-
"items": {
|
130
|
-
"$ref": "components.json#/components/schemas/association_by_id"
|
131
|
-
}
|
132
|
-
},
|
133
|
-
"numbers_array": {
|
134
|
-
"type": "array",
|
135
|
-
"items": {
|
164
|
+
},
|
165
|
+
"department_response": {
|
136
166
|
"type": "object",
|
137
167
|
"properties": {
|
138
|
-
"
|
139
|
-
|
168
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
169
|
+
"name": { "type": "string" },
|
170
|
+
"description": { "type": "string" },
|
171
|
+
"default_assignee_id": { "$ref": "components.json#/components/response/schemas/id" }
|
172
|
+
}
|
173
|
+
},
|
174
|
+
"response_attachments": {
|
175
|
+
"type": "array",
|
176
|
+
"items": {
|
177
|
+
"type": "object",
|
178
|
+
"properties": {
|
179
|
+
"id": { "$ref": "components.json#/components/common/schemas/association_by_id" },
|
180
|
+
"href": { "type": "string" }
|
140
181
|
}
|
141
182
|
}
|
142
|
-
}
|
143
|
-
|
144
|
-
"response_attachments": {
|
145
|
-
"type": "array",
|
146
|
-
"items": {
|
183
|
+
},
|
184
|
+
"role": {
|
147
185
|
"type": "object",
|
148
186
|
"properties": {
|
149
|
-
"id": { "$ref": "components.json#/components/schemas/
|
150
|
-
"
|
187
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
188
|
+
"name": { "type": "string" },
|
189
|
+
"description": { "type": "string" },
|
190
|
+
"portal": { "type": "boolean" },
|
191
|
+
"show_my_tasks": { "type": "boolean" }
|
192
|
+
}
|
193
|
+
},
|
194
|
+
"tag": {
|
195
|
+
"type": "object",
|
196
|
+
"properties": {
|
197
|
+
"id": { "$ref": "components.json#/components/response/schemas/id" },
|
198
|
+
"name": { "type": "string" },
|
199
|
+
"taggings_count": { "type": "integer" }
|
200
|
+
}
|
201
|
+
},
|
202
|
+
"tags": {
|
203
|
+
"type": "array",
|
204
|
+
"items": { "$ref": "components.json#/components/response/schemas/tag" }
|
205
|
+
}
|
206
|
+
}
|
207
|
+
},
|
208
|
+
"common": {
|
209
|
+
"schemas": {
|
210
|
+
"association_by_id": {
|
211
|
+
"oneOf": [{ "type": "string" }, { "type": "integer" }]
|
212
|
+
},
|
213
|
+
"ids_array": {
|
214
|
+
"type": "array",
|
215
|
+
"items": {
|
216
|
+
"$ref": "components.json#/components/common/schemas/association_by_id"
|
151
217
|
}
|
152
218
|
}
|
153
219
|
}
|
@@ -13,31 +13,27 @@
|
|
13
13
|
"priority": "High",
|
14
14
|
"category": { "name": "Facilities" },
|
15
15
|
"subcategory": { "name": "Equipment" },
|
16
|
-
"due_at": "Jan 01,
|
16
|
+
"due_at": "Jan 01,2025",
|
17
17
|
"add_to_tag_list": "tag1, tag2",
|
18
18
|
"custom_fields_values": {
|
19
19
|
"custom_fields_value": [
|
20
20
|
{ "name": "field name", "value": "content" }
|
21
21
|
]
|
22
22
|
},
|
23
|
-
"incidents": [{ "number": "
|
24
|
-
"problems": [{ "number": "
|
25
|
-
"changes": [{ "number": "
|
26
|
-
"solutions": [{ "number" :"
|
27
|
-
"releases": [{ "number": "
|
28
|
-
"configuration_item_ids":["
|
23
|
+
"incidents": [{ "number": "100" }],
|
24
|
+
"problems": [{ "number": "100" }],
|
25
|
+
"changes": [{ "number": "100" }],
|
26
|
+
"solutions": [{ "number" :"100" }],
|
27
|
+
"releases": [{ "number": "100" }],
|
28
|
+
"configuration_item_ids":["100"]
|
29
29
|
}
|
30
|
-
},
|
31
|
-
"xml": {
|
32
|
-
"description": "shouldn't work due to bug in openApi - https://github.com/springdoc/springdoc-openapi/issues/719",
|
33
|
-
"xml": "<incident><site><name>NAME</name></site><department_id>0</department_id><description>DESCRIPTION</description><state>NAME</state><assignee><email>EMAIL</email></assignee></incident>"
|
34
30
|
}
|
35
31
|
},
|
36
32
|
"response": {
|
37
33
|
"json": {
|
38
34
|
"incident": {
|
39
|
-
"id": "
|
40
|
-
"number": "
|
35
|
+
"id": "10000",
|
36
|
+
"number": "1000",
|
41
37
|
"name": "Incident Name",
|
42
38
|
"description": "description",
|
43
39
|
"state": "New",
|
@@ -55,17 +51,17 @@
|
|
55
51
|
"default_assignee_id": "1"
|
56
52
|
},
|
57
53
|
"category": {
|
58
|
-
"id": "
|
54
|
+
"id": "10000",
|
59
55
|
"name": "Facilities",
|
60
56
|
"default_tags": "tagA, tagB",
|
61
57
|
"parent_id": "null",
|
62
58
|
"default_assignee_id": "1"
|
63
59
|
},
|
64
60
|
"subcategory": {
|
65
|
-
"id": "
|
61
|
+
"id": "1000",
|
66
62
|
"name": "Equipment",
|
67
63
|
"default_tags": "",
|
68
|
-
"parent_id": "
|
64
|
+
"parent_id": "10000",
|
69
65
|
"default_assignee_id": "1"
|
70
66
|
},
|
71
67
|
"priority": "High",
|
@@ -78,24 +74,25 @@
|
|
78
74
|
"avatar": {
|
79
75
|
"type": "initials",
|
80
76
|
"color": "#fd4165",
|
81
|
-
"initials": "
|
77
|
+
"initials": "JD"
|
82
78
|
}
|
83
79
|
},
|
84
|
-
"requester": {
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"name": "John Doe",
|
80
|
+
"requester": {
|
81
|
+
"id": "1",
|
82
|
+
"account_id": "1",
|
83
|
+
"user_id": "1",
|
89
84
|
"email": "john.doe@email.com",
|
85
|
+
"name": "John Doe",
|
86
|
+
"disabled": false,
|
90
87
|
"avatar": {
|
91
88
|
"type": "initials",
|
92
89
|
"color": "#fd4165",
|
93
|
-
"initials": "
|
90
|
+
"initials": "JD"
|
94
91
|
}
|
95
92
|
},
|
96
93
|
"custom_fields_values": [
|
97
94
|
{
|
98
|
-
"id": "
|
95
|
+
"id": "1000",
|
99
96
|
"custom_field_id": "1",
|
100
97
|
"name": "field name",
|
101
98
|
"value": "content",
|
@@ -103,19 +100,15 @@
|
|
103
100
|
"type_name": "Text"
|
104
101
|
}
|
105
102
|
],
|
106
|
-
"due_at": "
|
103
|
+
"due_at": "2025-01-01T00:00:00.000+01:00",
|
107
104
|
"origin": "api",
|
108
|
-
"incidents": [{ "id": "
|
109
|
-
"problems": [{ "id": "
|
110
|
-
"changes": [{ "id": "
|
111
|
-
"solutions": [{ "id": "
|
112
|
-
"releases": [{ "id": "
|
113
|
-
"configuration_items": [{ "id": "
|
105
|
+
"incidents": [{ "id": "100", "href": "https://mydomain.com/incidents/100"}],
|
106
|
+
"problems": [{ "id": "100", "href": "https://mydomain.com/problems/100"}],
|
107
|
+
"changes": [{ "id": "100", "href": "https://mydomain.com/changes/100"}],
|
108
|
+
"solutions": [{ "id": "100", "href": "https://mydomain.com/solutions/100"}],
|
109
|
+
"releases": [{ "id": "100", "href": "https://mydomain.com/releases/100"}],
|
110
|
+
"configuration_items": [{ "id": "100", "href": "https://mydomain.com/configuration_items/100"}]
|
114
111
|
}
|
115
|
-
},
|
116
|
-
"xml": {
|
117
|
-
"description": "shouldn't work due to bug in openApi - https://github.com/springdoc/springdoc-openapi/issues/719",
|
118
|
-
"xml": "<incident><site><name>NAME</name></site><department_id>0</department_id><description>DESCRIPTION</description><state>NAME</state><assignee><email>EMAIL</email></assignee></incident>"
|
119
112
|
}
|
120
113
|
}
|
121
114
|
}
|