solarwinds-itsm-api-definitions 0.0.9 → 0.1.4
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 +354 -124
- data/lib/definitions/common/examples/catalog_item.json +70 -0
- data/lib/definitions/common/examples/change.json +123 -0
- data/lib/definitions/common/examples/change_catalog.json +72 -0
- data/lib/definitions/common/examples/configuration_item.json +110 -0
- data/lib/definitions/common/examples/hardware.json +100 -0
- data/lib/definitions/common/examples/incident.json +129 -115
- data/lib/definitions/common/examples/problem.json +110 -0
- data/lib/definitions/common/examples/release.json +128 -0
- data/lib/definitions/common/examples/service_request.json +28 -0
- data/lib/definitions/common/examples/solution.json +44 -0
- data/lib/definitions/common/examples/user.json +76 -0
- 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 +82 -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 +119 -0
- data/lib/definitions/common/schemas/service_desk/incident.json +89 -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 +96 -6
- 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 +28 -10
- data/lib/definitions/paths/incidents/incidents.json +36 -8
- 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 +83 -0
- data/lib/definitions/paths/users/users.json +69 -0
- data/lib/definitions/paths/vendors/vendor_by_id.json +74 -0
- data/lib/definitions/paths/vendors/vendors.json +62 -0
- data/lib/resolved_schema/resolved_schema.json +1 -1
- metadata +106 -3
- data/lib/definitions/common/schemas/incident.json +0 -106
@@ -0,0 +1,41 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"type": "object",
|
6
|
+
"xml": { "name": "/" },
|
7
|
+
"properties": {
|
8
|
+
"printer": {
|
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
|
+
"technical_contact": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
14
|
+
"address": { "type": "string", "example": "address description", "description": "Building/Floor/Room" }
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
},
|
19
|
+
"response": {
|
20
|
+
"type": "object",
|
21
|
+
"xml": { "name": "/", "wrapped": true },
|
22
|
+
"properties": {
|
23
|
+
"printer": {
|
24
|
+
"type": "object",
|
25
|
+
"properties": {
|
26
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
27
|
+
"name": { "type": "string", "example": "HP Color Printer" },
|
28
|
+
"driver": { "type": "string", "example": "Driver description" },
|
29
|
+
"port": { "type": "string", "example": "Port description" },
|
30
|
+
"shared": { "type": "boolean", "example": true },
|
31
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
|
32
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
|
33
|
+
"technical_contact": { "$ref": "../../components.json#/components/response/schemas/group_details" }
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"response": {
|
5
|
+
"type": "object",
|
6
|
+
"xml": { "name": "/", "wrapped": true },
|
7
|
+
"properties": {
|
8
|
+
"software": {
|
9
|
+
"type": "object",
|
10
|
+
"properties": {
|
11
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
12
|
+
"name": { "type": "string", "example": "Google Chrome" },
|
13
|
+
"tag": { "type": "string", "example": "software tag" },
|
14
|
+
"manufacturer": { "type": "string", "example": "Google LLC" },
|
15
|
+
"version": { "type": "string", "example": "0.0.0" },
|
16
|
+
"category": { "type": "string", "example": "Google softwares" },
|
17
|
+
"vendor": { "$ref": "../../components.json#/components/response/schemas/vendor" },
|
18
|
+
"installs": { "type": "integer", "example": 1 },
|
19
|
+
"created_at": { "type": "string", "example": "2020-01-01T00:00:00.000+01:00" },
|
20
|
+
"updated_at": { "type": "string", "example": "2020-10-01T00:00:00.000+01:00" }
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"type": "object",
|
6
|
+
"xml": { "name": "/" },
|
7
|
+
"properties": {
|
8
|
+
"warranty": {
|
9
|
+
"type": "object",
|
10
|
+
"properties": {
|
11
|
+
"service": { "type": "string", "example": "Warranty service description" },
|
12
|
+
"provider": { "type": "string", "example": "SolarWinds" },
|
13
|
+
"start_date": { "type": "string", "example": "Jan 01, 2020" },
|
14
|
+
"end_date": { "type": "string", "example": "Jan 01, 2030" },
|
15
|
+
"status": { "type": "string", "example": "Active" }
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
},
|
20
|
+
"response": {
|
21
|
+
"type": "object",
|
22
|
+
"xml": { "name": "/", "wrapped": true },
|
23
|
+
"properties": {
|
24
|
+
"warranty": {
|
25
|
+
"type": "object",
|
26
|
+
"properties": {
|
27
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
28
|
+
"service": { "type": "string", "example": "Warranty service description" },
|
29
|
+
"provider": { "type": "string", "example": "SolarWinds" },
|
30
|
+
"start_date": { "type": "string", "example": "2020-01-01T00:00:00.000+01:00" },
|
31
|
+
"end_date": { "type": "string", "example": "2030-01-01T00:00:00.000+01:00" },
|
32
|
+
"status": { "type": "string", "example": "Active" },
|
33
|
+
"manual": { "type": "boolean", "example": false }
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"contract": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name", "manufacturer_name"],
|
12
|
+
"properties": { "$ref": "contract.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"contract": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "contract.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"type": { "type": "string", "example": "Software License" },
|
29
|
+
"manufacturer_name": { "type": "string", "example": "Apple" },
|
30
|
+
"name": { "type": "string", "example": "Contract Name" },
|
31
|
+
"note": { "type": "string", "example": "Contract Note" },
|
32
|
+
"status": { "type": "string", "example": "Active" },
|
33
|
+
"site": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
34
|
+
"department": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
35
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
|
36
|
+
"custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
|
37
|
+
"start_date": { "type": "string", "example": "2020-01-01T00:00:00-00:00" },
|
38
|
+
"end_date": { "type": "string", "example": "2030-01-01T00:00:00-00:00" },
|
39
|
+
"tag_list": { "type": "string", "example": "tag1, tag2" }
|
40
|
+
},
|
41
|
+
"response": {
|
42
|
+
"type": "object",
|
43
|
+
"xml": { "name": "/", "wrapped": true },
|
44
|
+
"properties": {
|
45
|
+
"contract": {
|
46
|
+
"type": "object",
|
47
|
+
"properties": {
|
48
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
49
|
+
"name": { "type": "string", "example": "Contract Name" },
|
50
|
+
"type": { "type": "string", "example": "Software License" },
|
51
|
+
"manufacturer_name": { "type": "string", "example": "Apple" },
|
52
|
+
"note": { "type": "string", "example": "Contract Note" },
|
53
|
+
"status": { "type": "string", "example": "Active" },
|
54
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/site_response" },
|
55
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/department_response" },
|
56
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" },
|
57
|
+
"start_date": { "type": "string", "example": "2020-01-01T00:00:00-00:00" },
|
58
|
+
"end_date": { "type": "string", "example": "2030-01-01T00:00:00-00:00" },
|
59
|
+
"tags": { "$ref": "../../components.json#/components/response/schemas/tags" },
|
60
|
+
"items": { "$ref": "../../components.json#/components/response/schemas/procurement_items" }
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"components": {
|
3
|
+
"schemas": {
|
4
|
+
"request": {
|
5
|
+
"post": {
|
6
|
+
"type": "object",
|
7
|
+
"xml": { "name": "/" },
|
8
|
+
"properties": {
|
9
|
+
"item": {
|
10
|
+
"type": "object",
|
11
|
+
"required": ["name"],
|
12
|
+
"properties": { "$ref": "item.json#/components/schemas/request_properties" }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
"put": {
|
17
|
+
"type": "object",
|
18
|
+
"xml": { "name": "/" },
|
19
|
+
"properties": {
|
20
|
+
"item": {
|
21
|
+
"type": "object",
|
22
|
+
"properties": { "$ref": "item.json#/components/schemas/request_properties" }
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"request_properties": {
|
28
|
+
"name": { "type": "string", "example": "Item Name" },
|
29
|
+
"version": { "$ref": "../../components.json#/components/common/schemas/number_or_string" },
|
30
|
+
"qty": { "$ref": "../../components.json#/components/common/schemas/number_or_string" },
|
31
|
+
"tag": { "type": "string", "example": "Item tag" }
|
32
|
+
},
|
33
|
+
"response": {
|
34
|
+
"type": "object",
|
35
|
+
"xml": { "name": "/", "wrapped": true },
|
36
|
+
"properties": {
|
37
|
+
"item": {
|
38
|
+
"type": "object",
|
39
|
+
"properties": {
|
40
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
41
|
+
"name": { "type": "string", "example": "Item Name" },
|
42
|
+
"version": { "type": "string", "example": "1" },
|
43
|
+
"qty": { "type": "string", "example": "1" },
|
44
|
+
"tag": { "type": "string", "example": "Item tag" }
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
@@ -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,82 @@
|
|
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
|
+
"order_date": { "type": "string", "example": "Jan 01, 2025" },
|
31
|
+
"due_date": { "type": "string", "example": "Jan 01, 2030" },
|
32
|
+
"site": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
33
|
+
"department": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
34
|
+
"state": { "type": "string", "example": "Approved" },
|
35
|
+
"requester": { "$ref": "../../components.json#/components/request/schemas/association_by_email" },
|
36
|
+
"recurrence": { "type": "string", "example": "Monthly" },
|
37
|
+
"total_cost": { "$ref": "../../components.json#/components/common/schemas/number_or_string" },
|
38
|
+
"currency": { "type": "string", "example": "USD" },
|
39
|
+
"notes": { "type": "string", "example": "Purchase notes" },
|
40
|
+
"vendor": { "$ref": "../../components.json#/components/request/schemas/association_by_name" },
|
41
|
+
"billing_address": { "type": "string", "example": "Billing address" },
|
42
|
+
"shiping_address": { "type": "string", "example": "Shiping address" },
|
43
|
+
"payment_terms": { "type": "string", "example": "Purchase terms" },
|
44
|
+
"terms_conditions": { "type": "string", "example": "Terms conditions" },
|
45
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
|
46
|
+
"custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" },
|
47
|
+
"approval_levels_attributes": { "$ref": "../../components.json#/components/request/schemas/approval_levels_attributes" }
|
48
|
+
},
|
49
|
+
"response": {
|
50
|
+
"type": "object",
|
51
|
+
"xml": { "name": "/", "wrapped": true },
|
52
|
+
"properties": {
|
53
|
+
"purchase_order": {
|
54
|
+
"type": "object",
|
55
|
+
"properties": {
|
56
|
+
"id": { "$ref": "../../components.json#/components/response/schemas/id" },
|
57
|
+
"name": { "type": "string", "example": "Purchase order Name" },
|
58
|
+
"order_date": { "type": "string", "example": "2025-01-01T00:00:00.000+01:00" },
|
59
|
+
"due_date": { "type": "string", "example": "2030-01-01T00:00:00.000+01:00" },
|
60
|
+
"buyer": { "$ref": "../../components.json#/components/response/schemas/id_name_href" },
|
61
|
+
"site": { "$ref": "../../components.json#/components/response/schemas/id_name_href" },
|
62
|
+
"department": { "$ref": "../../components.json#/components/response/schemas/id_name_href" },
|
63
|
+
"state": { "type": "string", "example": "Approved" },
|
64
|
+
"requester": { "$ref": "../../components.json#/components/response/schemas/id_name_href", "example": { "id": "1", "name": "John Doe", "href": "/users/1" } },
|
65
|
+
"recurrence": { "type": "string", "example": "Monthly" },
|
66
|
+
"total_cost": { "type": "string", "example": "1" },
|
67
|
+
"currency": { "type": "string", "example": "USD" },
|
68
|
+
"notes": { "type": "string", "example": "Purchase notes" },
|
69
|
+
"vendor": { "$ref": "../../components.json#/components/response/schemas/id_name_href" },
|
70
|
+
"billing_address": { "type": "string", "example": "Billing address" },
|
71
|
+
"shiping_address": { "type": "string", "example": "Shiping address" },
|
72
|
+
"payment_terms": { "type": "string", "example": "Purchase terms" },
|
73
|
+
"terms_conditions": { "type": "string", "example": "Terms conditions" },
|
74
|
+
"custom_fields_values": { "$ref": "../../components.json#/components/response/schemas/custom_fields_values" },
|
75
|
+
"purchase_order_items": { "$ref": "../../components.json#/components/response/schemas/procurement_items" }
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
@@ -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": { "type": "string", "example": "1" },
|
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
|
+
}
|