solarwinds-itsm-api-definitions 0.1.3 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Redocly/development.html +126 -0
- data/Redocly/index.html +126 -0
- data/Redocly/redoc/favicon.ico +0 -0
- data/Redocly/redoc/schema/resolved_schema.json +1 -0
- data/lib/definitions/common/components.json +270 -58
- 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 +126 -102
- 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 +100 -8
- 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 +10 -10
- 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 +7 -8
- data/lib/definitions/paths/problems/problems.json +10 -10
- 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 +104 -6
- data/lib/definitions/common/schemas/incident.json +0 -70
- data/lib/definitions/common/schemas/problem.json +0 -67
- data/lib/definitions/common/schemas/user.json +0 -54
- data/lib/resolved_schema/resolved_schema.json +0 -1
@@ -0,0 +1,57 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"purchase": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name"],
|
12
|
+
"properties": { "$ref": "purchase.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"purchase": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "purchase.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"number": { "$ref": "../../components.json#/components/common/schemas/number_or_string" },
|
29
|
+
"date": { "type": "string", "example": "Jan 01, 2025" },
|
30
|
+
"recurrence": { "type": "string", "example": "Monthly" },
|
31
|
+
"total_cost": { "$ref": "../../components.json#/components/common/schemas/number_or_string" },
|
32
|
+
"currency": { "type": "string", "example": "USD" },
|
33
|
+
"notes": { "type": "string", "example": "Purchase notes" },
|
34
|
+
"vendor": { "$ref": "../../components.json#/components/request/schemas/association_by_name" }
|
35
|
+
},
|
36
|
+
"response": {
|
37
|
+
"type": "object",
|
38
|
+
"xml": { "name": "/", "wrapped": true },
|
39
|
+
"properties": {
|
40
|
+
"purchase": {
|
41
|
+
"type": "object",
|
42
|
+
"properties": {
|
43
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
44
|
+
"number": { "type": "string", "example": "1" },
|
45
|
+
"date": { "type": "string", "example": "Jan 01, 2025" },
|
46
|
+
"recurrence": { "type": "string", "example": "Monthly" },
|
47
|
+
"total_cost": { "type": "string", "example": "1" },
|
48
|
+
"currency": { "type": "string", "example": "USD" },
|
49
|
+
"notes": { "type": "string", "example": "Purchase notes" },
|
50
|
+
"vendor": { "$ref": "../../components.json#/components/response/schemas/vendor" }
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"purchase_order": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name", "vendor"],
|
12
|
+
"properties": { "$ref": "purchase_order.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"purchase_order": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "purchase_order.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "Purchase order Name" },
|
29
|
+
"buyer_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
30
|
+
"buyer": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
31
|
+
"order_date": { "type": "string", "example": "Jan 01, 2025" },
|
32
|
+
"due_date": { "type": "string", "example": "Jan 01, 2030" },
|
33
|
+
"site": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
34
|
+
"department": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
35
|
+
"state": { "type": "string", "example": "Approved" },
|
36
|
+
"requester": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
37
|
+
"recurrence": { "type": "string", "example": "Monthly" },
|
38
|
+
"total_cost": { "$ref": "../../components.json#/components/common/schemas/number_or_string" },
|
39
|
+
"currency": { "type": "string", "example": "USD" },
|
40
|
+
"tax": { "$ref": "../../components.json#/components/common/schemas/number_or_string" },
|
41
|
+
"notes": { "type": "string", "example": "Purchase notes" },
|
42
|
+
"vendor": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
43
|
+
"billing_address": { "type": "string", "example": "Billing address" },
|
44
|
+
"shipping_address": { "type": "string", "example": "Shipping address" },
|
45
|
+
"payment_terms": { "type": "string", "example": "Purchase terms" },
|
46
|
+
"terms_conditions": { "type": "string", "example": "Terms conditions" },
|
47
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
|
48
|
+
"custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
|
49
|
+
"approval_levels_attributes": { "$ref": "../../components.json#/components/request/schemas/approval_levels_attributes" },
|
50
|
+
"purchase_order_items_attributes": { "$ref": "../../components.json#/components/request/schemas/purchase_order_items_attributes" }
|
51
|
+
},
|
52
|
+
"response": {
|
53
|
+
"type": "object",
|
54
|
+
"xml": { "name": "/", "wrapped": true },
|
55
|
+
"properties": {
|
56
|
+
"purchase_order": {
|
57
|
+
"type": "object",
|
58
|
+
"properties": {
|
59
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
60
|
+
"name": { "type": "string", "example": "Purchase order Name" },
|
61
|
+
"order_date": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
62
|
+
"due_date": { "type": "string", "example": "2030-01-01T00:00:00.000+01:00" },
|
63
|
+
"buyer": { "$ref": "../../components.json#/components/response/schemas/id_name_href" },
|
64
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/id_name_href" },
|
65
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/id_name_href" },
|
66
|
+
"state": { "type": "string", "example": "Approved" },
|
67
|
+
"requester": { "$ref": "../../components.json#/components/response/schemas/id_name_href", "example": { "id": "1", "name": "John Doe", "href": "/users/1" } },
|
68
|
+
"recurrence": { "type": "string", "example": "Monthly" },
|
69
|
+
"total_cost": { "type": "string", "example": "1" },
|
70
|
+
"currency": { "type": "string", "example": "USD" },
|
71
|
+
"notes": { "type": "string", "example": "Purchase notes" },
|
72
|
+
"vendor": { "$ref": "../../components.json#/components/response/schemas/id_name_href" },
|
73
|
+
"billing_address": { "type": "string", "example": "Billing address" },
|
74
|
+
"shipping_address": { "type": "string", "example": "Shipping address" },
|
75
|
+
"payment_terms": { "type": "string", "example": "Purchase terms" },
|
76
|
+
"terms_conditions": { "type": "string", "example": "Terms conditions" },
|
77
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" },
|
78
|
+
"purchase_order_items": { "$ref": "../../components.json#/components/response/schemas/purchase_order_items" }
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"vendor": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name", "vendor_type"],
|
12
|
+
"properties": { "$ref": "vendor.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"vendor": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "vendor.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "SolarWinds" },
|
29
|
+
"vendor_type": { "$ref": "../../components.json#/components/request/schemas/association_by_name", "example": { "name": "General Business Vendor" } },
|
30
|
+
"url": { "type": "string", "example": "www.solarwinds.com" },
|
31
|
+
"contact_name": { "type": "string", "example": "Support" },
|
32
|
+
"contact_email": { "type": "string", "example": "support@solarwinds.com" },
|
33
|
+
"contact_phone": { "type": "string", "example": "+000000000" },
|
34
|
+
"note": { "type": "string", "example": "Notes" },
|
35
|
+
"address": { "type": "string", "example": "Address description" },
|
36
|
+
"city": { "type": "string", "example": "Cary" },
|
37
|
+
"state": { "type": "string", "example": "NC" },
|
38
|
+
"zip": { "type": "string", "example": "USA 11111" },
|
39
|
+
"telephone": { "type": "string", "example": "+000000000" }
|
40
|
+
},
|
41
|
+
"response": {
|
42
|
+
"type": "object",
|
43
|
+
"xml": { "name": "/", "wrapped": true },
|
44
|
+
"properties": {
|
45
|
+
"vendor": {
|
46
|
+
"type": "object",
|
47
|
+
"properties": {
|
48
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
49
|
+
"name": { "type": "string", "example": "SolarWinds" },
|
50
|
+
"vendor_type": { "type": "object", "properties": { "id": { "$ref": "../../components.json#/components/response/schemas/id" }, "name": { "type": "string", "example": "General Business Vendor" } } },
|
51
|
+
"url": { "type": "string", "example": "www.solarwinds.com" },
|
52
|
+
"contact_name": { "type": "string", "example": "Support" },
|
53
|
+
"contact_email": { "type": "string", "example": "support@solarwinds.com" },
|
54
|
+
"contact_phone": { "type": "string", "example": "+000000000" },
|
55
|
+
"note": { "type": "string", "example": "Notes" },
|
56
|
+
"address": { "type": "string", "example": "Address description" },
|
57
|
+
"city": { "type": "string", "example": "Cary" },
|
58
|
+
"state": { "type": "string", "example": "NC" },
|
59
|
+
"zip": { "type": "string", "example": "USA 11111" },
|
60
|
+
"telephone": { "type": "string", "example": "+000000000" }
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"catalog_item": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name", "category"],
|
12
|
+
"properties": { "$ref": "catalog_item.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"catalog_item": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "catalog_item.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "CI 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
|
+
"default_assignee_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
34
|
+
"category": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
35
|
+
"subcategory": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
36
|
+
"expected_delivery_time": { "type": "string", "example": "1 day" },
|
37
|
+
"currency": { "type": "string", "example": "USD" },
|
38
|
+
"price": { "$ref": "../../components.json#/components/common/schemas/number_or_string" },
|
39
|
+
"show_price": { "anyOf": [{ "type": "string", "example": "1" }, { "type": "boolean", "example": true }] },
|
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
|
+
},
|
44
|
+
"response": {
|
45
|
+
"type": "object",
|
46
|
+
"xml": { "name": "/", "wrapped": true },
|
47
|
+
"properties": {
|
48
|
+
"catalog_item": {
|
49
|
+
"type": "object",
|
50
|
+
"properties": {
|
51
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
52
|
+
"name": { "type": "string", "example": "CI Name" },
|
53
|
+
"description": { "type": "string", "example": "description" },
|
54
|
+
"expected_delivery_time": { "type": "string", "example": "1 day" },
|
55
|
+
"currency": { "type": "string", "example": "USD" },
|
56
|
+
"price": { "type": "string", "example": "1" },
|
57
|
+
"show_price": { "type": "boolean", "example": true },
|
58
|
+
"created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
59
|
+
"tags": { "$ref": "../../components.json#/components/response/schemas/tags" },
|
60
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
|
61
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
|
62
|
+
"category": { "$ref": "../../components.json#/components/response/schemas/category_subcategory" },
|
63
|
+
"subcategory": { "$ref": "../../components.json#/components/response/schemas/category_subcategory" },
|
64
|
+
"origin": { "type": "string", "example": "api" }
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"change": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name", "change_type"],
|
12
|
+
"properties": { "$ref": "change.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"change": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "change.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "Change Name" },
|
29
|
+
"change_type": { "type": "integer", "example": 1 },
|
30
|
+
"description": { "type": "string", "example": "description" },
|
31
|
+
"site": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
32
|
+
"department": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
33
|
+
"site_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
34
|
+
"department_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
35
|
+
"state": { "type": "string", "example": "New" },
|
36
|
+
"requester": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
37
|
+
"assignee": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
38
|
+
"priority": { "type": "string", "example": "High" },
|
39
|
+
"change_plan": { "type": "string", "example": "change plan" },
|
40
|
+
"rollback_plan": { "type": "string", "example": "rollback plan" },
|
41
|
+
"test_plan": { "type": "string", "example": "test plan" },
|
42
|
+
"planned_start_at": { "type": "string", "example": "2025-01-01 00:00" },
|
43
|
+
"planned_end_at": { "type": "string", "example": "2025-01-01 05:00" },
|
44
|
+
"add_to_tag_list": { "type": "string", "example": "tag1" },
|
45
|
+
"remove_from_tag_list": { "type": "string", "example": "tag2" },
|
46
|
+
"tag_list": { "type": "string", "example": "tag1" },
|
47
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
|
48
|
+
"custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
|
49
|
+
"incidents": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
|
50
|
+
"problems": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
|
51
|
+
"releases": { "$ref": "../../components.json#/components/request/schemas/attachment_numbers" },
|
52
|
+
"configuration_item_ids": { "$ref": "../../components.json#/components/common/schemas/ids_array" }
|
53
|
+
},
|
54
|
+
"response": {
|
55
|
+
"type": "object",
|
56
|
+
"xml": { "name": "/", "wrapped": true },
|
57
|
+
"properties": {
|
58
|
+
"change": {
|
59
|
+
"type": "object",
|
60
|
+
"properties": {
|
61
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
62
|
+
"name": { "type": "string", "example": "Change Name" },
|
63
|
+
"description": { "type": "string", "example": "description" },
|
64
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
|
65
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
|
66
|
+
"state": { "type": "string", "example": "New" },
|
67
|
+
"priority": { "type": "string", "example": "High" },
|
68
|
+
"change_plan": { "type": "string", "example": "change plan" },
|
69
|
+
"rollback_plan": { "type": "string", "example": "rollback plan" },
|
70
|
+
"test_plan": { "type": "string", "example": "test plan" },
|
71
|
+
"planned_start_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
72
|
+
"planned_end_at": { "type": "string", "example": "2025-01-01T05:00:00.000+01:00" },
|
73
|
+
"created_by": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
74
|
+
"assignee": { "$ref": "../../components.json#/components/response/schemas/group_details" },
|
75
|
+
"requester": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
76
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" },
|
77
|
+
"tags": { "$ref": "../../components.json#/components/response/schemas/tags" },
|
78
|
+
"created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
79
|
+
"incidents": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
80
|
+
"changes": { "$ref": "../../components.json#/components/response/schemas/response_attachments" },
|
81
|
+
"configuration_items": { "$ref": "../../components.json#/components/response/schemas/response_attachments" }
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"change_catalog": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name", "change_type"],
|
12
|
+
"properties": { "$ref": "change_catalog.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"change_catalog": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "change_catalog.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "Change Name" },
|
29
|
+
"change_type": { "type": "integer", "example": 1 },
|
30
|
+
"description": { "type": "string", "example": "description" },
|
31
|
+
"site": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
32
|
+
"department": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
33
|
+
"site_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
34
|
+
"department_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
35
|
+
"state": { "type": "string", "example": "Approved" },
|
36
|
+
"default_assignee_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
|
37
|
+
"priority": { "type": "string", "example": "High" },
|
38
|
+
"change_plan": { "type": "string", "example": "change plan" },
|
39
|
+
"rollback_plan": { "type": "string", "example": "rollback plan" },
|
40
|
+
"test_plan": { "type": "string", "example": "test plan" },
|
41
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
|
42
|
+
"custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
|
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
|
+
"show_in_portal": { "type": "boolean", "example": true }
|
47
|
+
},
|
48
|
+
"response": {
|
49
|
+
"type": "object",
|
50
|
+
"xml": { "name": "/", "wrapped": true },
|
51
|
+
"properties": {
|
52
|
+
"change_catalog": {
|
53
|
+
"type": "object",
|
54
|
+
"properties": {
|
55
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
56
|
+
"name": { "type": "string", "example": "Change Name" },
|
57
|
+
"description": { "type": "string", "example": "description" },
|
58
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
|
59
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
|
60
|
+
"state": { "type": "string", "example": "Approved" },
|
61
|
+
"priority": { "type": "string", "example": "High" },
|
62
|
+
"change_plan": { "type": "string", "example": "change plan" },
|
63
|
+
"rollback_plan": { "type": "string", "example": "rollback plan" },
|
64
|
+
"test_plan": { "type": "string", "example": "test plan" },
|
65
|
+
"created_by": { "$ref": "../../components.json#/components/response/schemas/user_details" },
|
66
|
+
"default_assignee": { "$ref": "../../components.json#/components/response/schemas/group_details" },
|
67
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" },
|
68
|
+
"tags": { "$ref": "../../components.json#/components/response/schemas/tags" },
|
69
|
+
"created_at": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
70
|
+
"show_in_portal": { "type": "boolean", "example": true }
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|