solarwinds-itsm-api-definitions 0.1.2 → 0.1.7
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 +286 -56
- data/lib/definitions/common/examples/catalog_item.json +70 -0
- data/lib/definitions/common/examples/change.json +127 -0
- data/lib/definitions/common/examples/change_catalog.json +92 -0
- data/lib/definitions/common/examples/configuration_item.json +108 -0
- data/lib/definitions/common/examples/hardware.json +125 -0
- data/lib/definitions/common/examples/incident.json +134 -109
- data/lib/definitions/common/examples/problem.json +132 -0
- data/lib/definitions/common/examples/release.json +150 -0
- data/lib/definitions/common/examples/service_request.json +28 -0
- data/lib/definitions/common/examples/solution.json +49 -0
- data/lib/definitions/common/examples/user.json +100 -70
- data/lib/definitions/common/schemas/analytics/audit.json +28 -0
- data/lib/definitions/common/schemas/analytics/risk.json +28 -0
- data/lib/definitions/common/schemas/inventory/hardware.json +104 -0
- data/lib/definitions/common/schemas/inventory/mobile.json +73 -0
- data/lib/definitions/common/schemas/inventory/other_asset.json +74 -0
- data/lib/definitions/common/schemas/inventory/printer.json +41 -0
- data/lib/definitions/common/schemas/inventory/software.json +28 -0
- data/lib/definitions/common/schemas/inventory/warranty.json +40 -0
- data/lib/definitions/common/schemas/procurement/contract.json +67 -0
- data/lib/definitions/common/schemas/procurement/item.json +51 -0
- data/lib/definitions/common/schemas/procurement/purchase.json +57 -0
- data/lib/definitions/common/schemas/procurement/purchase_order.json +85 -0
- data/lib/definitions/common/schemas/procurement/vendor.json +67 -0
- data/lib/definitions/common/schemas/service_desk/catalog_item.json +71 -0
- data/lib/definitions/common/schemas/service_desk/change.json +88 -0
- data/lib/definitions/common/schemas/service_desk/change_catalog.json +77 -0
- data/lib/definitions/common/schemas/service_desk/comment.json +52 -0
- data/lib/definitions/common/schemas/service_desk/configuration_item.json +117 -0
- data/lib/definitions/common/schemas/service_desk/incident.json +99 -0
- data/lib/definitions/common/schemas/service_desk/problem.json +81 -0
- data/lib/definitions/common/schemas/service_desk/release.json +86 -0
- data/lib/definitions/common/schemas/service_desk/service_request.json +31 -0
- data/lib/definitions/common/schemas/service_desk/solution.json +61 -0
- data/lib/definitions/common/schemas/service_desk/time_track.json +37 -0
- data/lib/definitions/common/schemas/setup/category.json +54 -0
- data/lib/definitions/common/schemas/setup/department.json +48 -0
- data/lib/definitions/common/schemas/setup/group.json +65 -0
- data/lib/definitions/common/schemas/setup/role.json +51 -0
- data/lib/definitions/common/schemas/setup/site.json +64 -0
- data/lib/definitions/common/schemas/setup/user.json +67 -0
- data/lib/definitions/common/schemas/tasks/task.json +52 -0
- data/lib/definitions/openapi.json +102 -7
- data/lib/definitions/paths/attachments/attachments.json +12 -0
- data/lib/definitions/paths/audits/audits.json +35 -0
- data/lib/definitions/paths/audits/audits_by_id.json +37 -0
- data/lib/definitions/paths/catalog_items/catalog_item_by_id.json +83 -0
- data/lib/definitions/paths/catalog_items/catalog_items.json +69 -0
- data/lib/definitions/paths/categories/categories.json +62 -0
- data/lib/definitions/paths/categories/category_by_id.json +70 -0
- data/lib/definitions/paths/change_catalogs/change_catalog_by_id.json +83 -0
- data/lib/definitions/paths/change_catalogs/change_catalogs.json +69 -0
- data/lib/definitions/paths/changes/change_by_id.json +83 -0
- data/lib/definitions/paths/changes/changes.json +69 -0
- data/lib/definitions/paths/comments/comment_by_id.json +65 -0
- data/lib/definitions/paths/comments/comments.json +31 -0
- data/lib/definitions/paths/configuration_items/append_dependent_assets.json +24 -0
- data/lib/definitions/paths/configuration_items/configuration_item_by_id.json +83 -0
- data/lib/definitions/paths/configuration_items/configuration_items.json +69 -0
- data/lib/definitions/paths/configuration_items/delete_asset_link.json +24 -0
- data/lib/definitions/paths/contracts/contract_by_id.json +74 -0
- data/lib/definitions/paths/contracts/contracts.json +62 -0
- data/lib/definitions/paths/contracts/item_by_id.json +75 -0
- data/lib/definitions/paths/contracts/items.json +30 -0
- data/lib/definitions/paths/departments/department_by_id.json +70 -0
- data/lib/definitions/paths/departments/departments.json +62 -0
- data/lib/definitions/paths/groups/group_by_id.json +70 -0
- data/lib/definitions/paths/groups/groups.json +62 -0
- data/lib/definitions/paths/hardwares/hardware_by_id.json +83 -0
- data/lib/definitions/paths/hardwares/hardwares.json +69 -0
- data/lib/definitions/paths/hardwares/warranties.json +64 -0
- data/lib/definitions/paths/hardwares/warranty_by_id.json +75 -0
- data/lib/definitions/paths/incidents/incident_by_id.json +7 -7
- data/lib/definitions/paths/incidents/incidents.json +11 -11
- data/lib/definitions/paths/memberships/membership_by_id.json +20 -0
- data/lib/definitions/paths/memberships/memberships.json +29 -0
- data/lib/definitions/paths/mobiles/mobile_by_id.json +74 -0
- data/lib/definitions/paths/mobiles/mobiles.json +62 -0
- data/lib/definitions/paths/other_assets/other_asset_by_id.json +74 -0
- data/lib/definitions/paths/other_assets/other_assets.json +62 -0
- data/lib/definitions/paths/printers/printer_by_id.json +53 -0
- data/lib/definitions/paths/printers/printers.json +36 -0
- data/lib/definitions/paths/problems/problem_by_id.json +83 -0
- data/lib/definitions/paths/problems/problems.json +69 -0
- data/lib/definitions/paths/purchase_orders/purchase_order_by_id.json +74 -0
- data/lib/definitions/paths/purchase_orders/purchase_orders.json +62 -0
- data/lib/definitions/paths/purchases/purchase_by_id.json +65 -0
- data/lib/definitions/paths/purchases/purchases.json +31 -0
- data/lib/definitions/paths/releases/release_by_id.json +83 -0
- data/lib/definitions/paths/releases/releases.json +69 -0
- data/lib/definitions/paths/risks/risks.json +34 -0
- data/lib/definitions/paths/roles/role_by_id.json +70 -0
- data/lib/definitions/paths/roles/roles.json +62 -0
- data/lib/definitions/paths/service_requests/request_by_id.json +37 -0
- data/lib/definitions/paths/sites/site_by_id.json +74 -0
- data/lib/definitions/paths/sites/sites.json +62 -0
- data/lib/definitions/paths/softwares/software_by_id.json +24 -0
- data/lib/definitions/paths/softwares/softwares.json +36 -0
- data/lib/definitions/paths/solutions/solution_by_id.json +83 -0
- data/lib/definitions/paths/solutions/solutions.json +69 -0
- data/lib/definitions/paths/tasks/task_by_id.json +65 -0
- data/lib/definitions/paths/tasks/tasks.json +31 -0
- data/lib/definitions/paths/time_tracks/time_track_by_id.json +65 -0
- data/lib/definitions/paths/time_tracks/time_tracks.json +66 -0
- data/lib/definitions/paths/users/user_by_id.json +8 -9
- data/lib/definitions/paths/users/users.json +11 -11
- data/lib/definitions/paths/vendors/vendor_by_id.json +74 -0
- data/lib/definitions/paths/vendors/vendors.json +62 -0
- data/lib/solarwinds/itsm/api/definitions.rb +52 -3
- metadata +103 -5
- data/lib/definitions/common/schemas/incident.json +0 -69
- data/lib/definitions/common/schemas/user.json +0 -53
- data/lib/resolved_schema/resolved_schema.json +0 -1
@@ -0,0 +1,99 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"incident": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name"],
|
12
|
+
"properties": { "$ref": "incident.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"incident": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "incident.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "Incident Name" },
|
29
|
+
"site_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
30
|
+
"department_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
31
|
+
"description": { "type": "string", "example": "description" },
|
32
|
+
"state_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
33
|
+
"assignee": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
34
|
+
"assignee_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
35
|
+
"priority": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
36
|
+
"requester": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
37
|
+
"category": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
38
|
+
"subcategory": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
39
|
+
"due_at": { "type": "string", "example": "Jan 01,2025" },
|
40
|
+
"add_to_tag_list": { "type": "string", "example": "tag1, tag2" },
|
41
|
+
"remove_from_tag_list": { "type": "string", "example": "tag3" },
|
42
|
+
"tag_list": { "type": "string", "example": "tag1, tag2" },
|
43
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
|
44
|
+
"custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
|
45
|
+
"incidents": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
|
46
|
+
"solutions": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
|
47
|
+
"changes": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
|
48
|
+
"problems": {
|
49
|
+
"description": "Incident can have only one Problem associated",
|
50
|
+
"anyOf": [
|
51
|
+
{ "$ref": "../../components.json#/components/request/schemas/number_property" },
|
52
|
+
{
|
53
|
+
"type": "array",
|
54
|
+
"maxItems": 1,
|
55
|
+
"items": { "$ref": "../../components.json#/components/request/schemas/number_property" }
|
56
|
+
}
|
57
|
+
]
|
58
|
+
},
|
59
|
+
"releases": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
|
60
|
+
"configuration_item_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" },
|
61
|
+
"cc": { "$ref": "../../components.json#/components/request/schemas/cc_array" }
|
62
|
+
},
|
63
|
+
"response": {
|
64
|
+
"type": "object",
|
65
|
+
"xml": { "name": "/", "wrapped": true },
|
66
|
+
"properties": {
|
67
|
+
"incident": {
|
68
|
+
"type": "object",
|
69
|
+
"properties": {
|
70
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
71
|
+
"name": { "type": "string", "example": "Incident Name" },
|
72
|
+
"description": { "type": "string", "example": "description" },
|
73
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
|
74
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
|
75
|
+
"state": { "type": "string", "example": "New" },
|
76
|
+
"priority": { "type": "string", "example": "High" },
|
77
|
+
"assignee": { "$ref": "../../components.json#/components/response/schemas/group_details" },
|
78
|
+
"requester": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
79
|
+
"category": { "$ref": "../../components.json#/components/response/schemas/category_subcategory" },
|
80
|
+
"subcategory": { "$ref": "../../components.json#/components/response/schemas/category_subcategory" },
|
81
|
+
"due_at": { "type": "string", "example": "Jan 01,2025" },
|
82
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" },
|
83
|
+
"created_by": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
84
|
+
"origin": { "type": "string", "example": "api" },
|
85
|
+
"incidents": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
86
|
+
"solutions": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
87
|
+
"changes": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
88
|
+
"problems": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
89
|
+
"releases": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
90
|
+
"configuration_items": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
91
|
+
"is_service_request": { "type": "boolean", "example": true },
|
92
|
+
"cc": { "$ref": "../../components.json#/components/request/schemas/cc_array" }
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"problem": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name"],
|
12
|
+
"properties": { "$ref": "problem.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"problem": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "problem.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "Problem Name" },
|
29
|
+
"description": { "type": "string", "example": "description" },
|
30
|
+
"site": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
31
|
+
"department": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
32
|
+
"site_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
33
|
+
"department_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
34
|
+
"state": { "type": "string", "example": "New" },
|
35
|
+
"requester": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
36
|
+
"assignee": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
37
|
+
"priority": { "type": "string", "example": "High" },
|
38
|
+
"root_cause": { "type": "string", "example": "Root cause description" },
|
39
|
+
"symptoms": { "type": "string", "example": "Symptoms description" },
|
40
|
+
"workaround": { "type": "string", "example": "workaround description" },
|
41
|
+
"add_to_tag_list": { "type": "string", "example": "tag1" },
|
42
|
+
"remove_from_tag_list": { "type": "string", "example": "tag2" },
|
43
|
+
"tag_list": { "type": "string", "example": "tag1" },
|
44
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
|
45
|
+
"custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
|
46
|
+
"incident_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" },
|
47
|
+
"itsm_change_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" },
|
48
|
+
"configuration_item_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" }
|
49
|
+
},
|
50
|
+
"response": {
|
51
|
+
"type": "object",
|
52
|
+
"xml": { "name": "/", "wrapped": true },
|
53
|
+
"properties": {
|
54
|
+
"problem": {
|
55
|
+
"type": "object",
|
56
|
+
"properties": {
|
57
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
58
|
+
"name": { "type": "string", "example": "Problem Name" },
|
59
|
+
"description": { "type": "string", "example": "description" },
|
60
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
|
61
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
|
62
|
+
"state": { "type": "string", "example": "New" },
|
63
|
+
"priority": { "type": "string", "example": "High" },
|
64
|
+
"root_cause": { "type": "string", "example": "Root cause description" },
|
65
|
+
"symptoms": { "type": "string", "example": "Symptoms description" },
|
66
|
+
"workaround": { "type": "string", "example": "Workaround description" },
|
67
|
+
"created_by": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
68
|
+
"assignee": { "$ref": "../../components.json#/components/response/schemas/group_details" },
|
69
|
+
"requester": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
70
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" },
|
71
|
+
"tags": { "$ref": "../../components.json#/components/response/schemas/tags" },
|
72
|
+
"incidents": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
73
|
+
"changes": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
74
|
+
"configuration_items": { "$ref": "../../components.json#/components/response/schemas/response_attachments" }
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"release": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name", "requester"],
|
12
|
+
"properties": { "$ref": "release.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"release": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "release.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "Release Name" },
|
29
|
+
"description": { "type": "string", "example": "description" },
|
30
|
+
"site": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
31
|
+
"department": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
32
|
+
"site_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
33
|
+
"department_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
34
|
+
"state": { "type": "string", "example": "New" },
|
35
|
+
"requester": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
36
|
+
"assignee": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
37
|
+
"priority": { "type": "string", "example": "High" },
|
38
|
+
"plan": { "type": "string", "example": "plan description" },
|
39
|
+
"build": { "type": "string", "example": "build description" },
|
40
|
+
"deploy": { "type": "string", "example": "deploy description" },
|
41
|
+
"planned_start_at": { "type": "string", "example": "2025-01-01 00:00" },
|
42
|
+
"planned_end_at": { "type": "string", "example": "2025-01-01 05:00" },
|
43
|
+
"add_to_tag_list": { "type": "string", "example": "tag1" },
|
44
|
+
"remove_from_tag_list": { "type": "string", "example": "tag2" },
|
45
|
+
"tag_list": { "type": "string", "example": "tag1" },
|
46
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
|
47
|
+
"custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
|
48
|
+
"itsm_change_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" },
|
49
|
+
"configuration_item_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" },
|
50
|
+
"approval_levels_attributes": { "$ref": "../../components.json#/components/request/schemas/approval_levels_attributes" }
|
51
|
+
},
|
52
|
+
"response": {
|
53
|
+
"type": "object",
|
54
|
+
"xml": { "name": "/", "wrapped": true },
|
55
|
+
"properties": {
|
56
|
+
"release": {
|
57
|
+
"type": "object",
|
58
|
+
"properties": {
|
59
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
60
|
+
"name": { "type": "string", "example": "Release Name" },
|
61
|
+
"description": { "type": "string", "example": "description" },
|
62
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
|
63
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
|
64
|
+
"state": { "type": "string", "example": "New" },
|
65
|
+
"priority": { "type": "string", "example": "High" },
|
66
|
+
"plan": { "type": "string", "example": "plan description" },
|
67
|
+
"build": { "type": "string", "example": "build description" },
|
68
|
+
"deploy": { "type": "string", "example": "deploy description" },
|
69
|
+
"planned_start_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
70
|
+
"planned_end_at": { "type": "string", "example": "2025-01-01T05:00:00.000+01:00" },
|
71
|
+
"created_by": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
72
|
+
"assignee": { "$ref": "../../components.json#/components/response/schemas/group_details" },
|
73
|
+
"requester": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
74
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" },
|
75
|
+
"tags": { "$ref": "../../components.json#/components/response/schemas/tags" },
|
76
|
+
"created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
77
|
+
"changes": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
78
|
+
"configuration_items": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
79
|
+
"approvers": { "$ref": "../../components.json#/components/response/schemas/approvers" }
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"type": "object",
|
6
|
+
"xml": { "name": "/" },
|
7
|
+
"properties": {
|
8
|
+
"incident": {
|
9
|
+
"type": "object",
|
10
|
+
"properties": {
|
11
|
+
"site_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
12
|
+
"department_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
13
|
+
"requester_name": { "type": "string", "format": "email", "example": "john.doe@email.com" },
|
14
|
+
"priority": { "type": "string", "example": "High" },
|
15
|
+
"due_at": { "type": "string", "example": "Jan 01,2025" },
|
16
|
+
"add_to_tag_list": { "type": "string", "example": "tag1, tag2" },
|
17
|
+
"remove_from_tag_list": { "type": "string", "example": "tag3" },
|
18
|
+
"tag_list": { "type": "string", "example": "tag1, tag2" },
|
19
|
+
"request_variables_attributes": {
|
20
|
+
"anyOf": [
|
21
|
+
{ "$ref": "../../components.json#/components/request/schemas/variable" },
|
22
|
+
{ "type": "array", "items": { "$ref": "../../components.json#/components/request/schemas/variable" } }
|
23
|
+
]
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"solution": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name"],
|
12
|
+
"properties": { "$ref": "solution.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"solution": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "solution.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "Solution Name" },
|
29
|
+
"site_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
30
|
+
"department_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
31
|
+
"description": { "type": "string", "example": "description" },
|
32
|
+
"state": { "type": "string", "example": "Approved" },
|
33
|
+
"category": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
34
|
+
"subcategory": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
35
|
+
"add_to_tag_list": { "type": "string", "example": "tag1, tag2" },
|
36
|
+
"remove_from_tag_list": { "type": "string", "example": "tag3" },
|
37
|
+
"tag_list": { "type": "string", "example": "tag1, tag2" },
|
38
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
|
39
|
+
"custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
|
40
|
+
"incident_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" }
|
41
|
+
},
|
42
|
+
"response": {
|
43
|
+
"type": "object",
|
44
|
+
"xml": { "name": "/", "wrapped": true },
|
45
|
+
"properties": {
|
46
|
+
"solution": {
|
47
|
+
"type": "object",
|
48
|
+
"properties": {
|
49
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
50
|
+
"name": { "type": "string", "example": "Solution Name" },
|
51
|
+
"description": { "type": "string", "example": "description" },
|
52
|
+
"creator": { "$ref": "../../components.json#/components/response/schemas/creator" },
|
53
|
+
"created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
54
|
+
"origin": { "type": "string", "example": "api" }
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"type": "object",
|
6
|
+
"xml": { "name": "/" },
|
7
|
+
"properties": {
|
8
|
+
"time_track": {
|
9
|
+
"type": "object",
|
10
|
+
"properties": {
|
11
|
+
"name": { "type": "string", "example": "Time Track Name" },
|
12
|
+
"minutes_parsed": { "type": "string", "example": "2h" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"response": {
|
18
|
+
"type": "object",
|
19
|
+
"xml": { "name": "/", "wrapped": true },
|
20
|
+
"properties": {
|
21
|
+
"time_track": {
|
22
|
+
"type": "object",
|
23
|
+
"properties": {
|
24
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
25
|
+
"name": { "type": "string", "example": "Time Track Name" },
|
26
|
+
"minutes": { "type": "string", "example": "120" },
|
27
|
+
"created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
28
|
+
"updated_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
29
|
+
"creator": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
30
|
+
"parent": { "$ref": "../../components.json#/components/response/schemas/parent_object" }
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"category": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name"],
|
12
|
+
"properties": { "$ref": "category.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"category": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "category.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "Equipment" },
|
29
|
+
"parent": {
|
30
|
+
"$ref": "../../components.json#/components/request/schemas/association_by_name",
|
31
|
+
"example": { "name": "Facilities" }
|
32
|
+
},
|
33
|
+
"default_assignee_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
34
|
+
"default_tags": { "type": "string", "example": "equipment" }
|
35
|
+
},
|
36
|
+
"response": {
|
37
|
+
"type": "object",
|
38
|
+
"xml": { "name": "/", "wrapped": true },
|
39
|
+
"properties": {
|
40
|
+
"category": {
|
41
|
+
"type": "object",
|
42
|
+
"properties": {
|
43
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
44
|
+
"name": { "type": "string", "example": "Equipment" },
|
45
|
+
"parent_id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
46
|
+
"default_tags": { "type": "string", "example": "equipment" },
|
47
|
+
"default_assignee_id": { "$ref": "../../components.json#/components/response/schemas/id" }
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|