solarwinds-itsm-api-definitions 0.1.1 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/lib/definitions/common/components.json +298 -49
  3. data/lib/definitions/common/examples/catalog_item.json +70 -0
  4. data/lib/definitions/common/examples/change.json +127 -0
  5. data/lib/definitions/common/examples/change_catalog.json +92 -0
  6. data/lib/definitions/common/examples/configuration_item.json +108 -0
  7. data/lib/definitions/common/examples/hardware.json +125 -0
  8. data/lib/definitions/common/examples/incident.json +134 -109
  9. data/lib/definitions/common/examples/problem.json +132 -0
  10. data/lib/definitions/common/examples/release.json +150 -0
  11. data/lib/definitions/common/examples/service_request.json +28 -0
  12. data/lib/definitions/common/examples/solution.json +49 -0
  13. data/lib/definitions/common/examples/user.json +106 -0
  14. data/lib/definitions/common/schemas/analytics/audit.json +28 -0
  15. data/lib/definitions/common/schemas/analytics/risk.json +28 -0
  16. data/lib/definitions/common/schemas/inventory/hardware.json +104 -0
  17. data/lib/definitions/common/schemas/inventory/mobile.json +73 -0
  18. data/lib/definitions/common/schemas/inventory/other_asset.json +74 -0
  19. data/lib/definitions/common/schemas/inventory/printer.json +41 -0
  20. data/lib/definitions/common/schemas/inventory/software.json +28 -0
  21. data/lib/definitions/common/schemas/inventory/warranty.json +40 -0
  22. data/lib/definitions/common/schemas/procurement/contract.json +67 -0
  23. data/lib/definitions/common/schemas/procurement/item.json +51 -0
  24. data/lib/definitions/common/schemas/procurement/purchase.json +57 -0
  25. data/lib/definitions/common/schemas/procurement/purchase_order.json +85 -0
  26. data/lib/definitions/common/schemas/procurement/vendor.json +67 -0
  27. data/lib/definitions/common/schemas/service_desk/catalog_item.json +71 -0
  28. data/lib/definitions/common/schemas/service_desk/change.json +88 -0
  29. data/lib/definitions/common/schemas/service_desk/change_catalog.json +77 -0
  30. data/lib/definitions/common/schemas/service_desk/comment.json +52 -0
  31. data/lib/definitions/common/schemas/service_desk/configuration_item.json +117 -0
  32. data/lib/definitions/common/schemas/service_desk/incident.json +99 -0
  33. data/lib/definitions/common/schemas/service_desk/problem.json +81 -0
  34. data/lib/definitions/common/schemas/service_desk/release.json +86 -0
  35. data/lib/definitions/common/schemas/service_desk/service_request.json +31 -0
  36. data/lib/definitions/common/schemas/service_desk/solution.json +61 -0
  37. data/lib/definitions/common/schemas/service_desk/time_track.json +37 -0
  38. data/lib/definitions/common/schemas/setup/category.json +54 -0
  39. data/lib/definitions/common/schemas/setup/department.json +48 -0
  40. data/lib/definitions/common/schemas/setup/group.json +65 -0
  41. data/lib/definitions/common/schemas/setup/role.json +51 -0
  42. data/lib/definitions/common/schemas/setup/site.json +64 -0
  43. data/lib/definitions/common/schemas/setup/user.json +67 -0
  44. data/lib/definitions/common/schemas/tasks/task.json +52 -0
  45. data/lib/definitions/openapi.json +105 -10
  46. data/lib/definitions/paths/attachments/attachments.json +12 -0
  47. data/lib/definitions/paths/audits/audits.json +35 -0
  48. data/lib/definitions/paths/audits/audits_by_id.json +37 -0
  49. data/lib/definitions/paths/catalog_items/catalog_item_by_id.json +83 -0
  50. data/lib/definitions/paths/catalog_items/catalog_items.json +69 -0
  51. data/lib/definitions/paths/categories/categories.json +62 -0
  52. data/lib/definitions/paths/categories/category_by_id.json +70 -0
  53. data/lib/definitions/paths/change_catalogs/change_catalog_by_id.json +83 -0
  54. data/lib/definitions/paths/change_catalogs/change_catalogs.json +69 -0
  55. data/lib/definitions/paths/changes/change_by_id.json +83 -0
  56. data/lib/definitions/paths/changes/changes.json +69 -0
  57. data/lib/definitions/paths/comments/comment_by_id.json +65 -0
  58. data/lib/definitions/paths/comments/comments.json +31 -0
  59. data/lib/definitions/paths/configuration_items/append_dependent_assets.json +24 -0
  60. data/lib/definitions/paths/configuration_items/configuration_item_by_id.json +83 -0
  61. data/lib/definitions/paths/configuration_items/configuration_items.json +69 -0
  62. data/lib/definitions/paths/configuration_items/delete_asset_link.json +24 -0
  63. data/lib/definitions/paths/contracts/contract_by_id.json +74 -0
  64. data/lib/definitions/paths/contracts/contracts.json +62 -0
  65. data/lib/definitions/paths/contracts/item_by_id.json +75 -0
  66. data/lib/definitions/paths/contracts/items.json +30 -0
  67. data/lib/definitions/paths/departments/department_by_id.json +70 -0
  68. data/lib/definitions/paths/departments/departments.json +62 -0
  69. data/lib/definitions/paths/groups/group_by_id.json +70 -0
  70. data/lib/definitions/paths/groups/groups.json +62 -0
  71. data/lib/definitions/paths/hardwares/hardware_by_id.json +83 -0
  72. data/lib/definitions/paths/hardwares/hardwares.json +69 -0
  73. data/lib/definitions/paths/hardwares/warranties.json +64 -0
  74. data/lib/definitions/paths/hardwares/warranty_by_id.json +75 -0
  75. data/lib/definitions/paths/incidents/incident_by_id.json +7 -7
  76. data/lib/definitions/paths/incidents/incidents.json +11 -11
  77. data/lib/definitions/paths/memberships/membership_by_id.json +20 -0
  78. data/lib/definitions/paths/memberships/memberships.json +29 -0
  79. data/lib/definitions/paths/mobiles/mobile_by_id.json +74 -0
  80. data/lib/definitions/paths/mobiles/mobiles.json +62 -0
  81. data/lib/definitions/paths/other_assets/other_asset_by_id.json +74 -0
  82. data/lib/definitions/paths/other_assets/other_assets.json +62 -0
  83. data/lib/definitions/paths/printers/printer_by_id.json +53 -0
  84. data/lib/definitions/paths/printers/printers.json +36 -0
  85. data/lib/definitions/paths/problems/problem_by_id.json +83 -0
  86. data/lib/definitions/paths/problems/problems.json +69 -0
  87. data/lib/definitions/paths/purchase_orders/purchase_order_by_id.json +74 -0
  88. data/lib/definitions/paths/purchase_orders/purchase_orders.json +62 -0
  89. data/lib/definitions/paths/purchases/purchase_by_id.json +65 -0
  90. data/lib/definitions/paths/purchases/purchases.json +31 -0
  91. data/lib/definitions/paths/releases/release_by_id.json +83 -0
  92. data/lib/definitions/paths/releases/releases.json +69 -0
  93. data/lib/definitions/paths/risks/risks.json +34 -0
  94. data/lib/definitions/paths/roles/role_by_id.json +70 -0
  95. data/lib/definitions/paths/roles/roles.json +62 -0
  96. data/lib/definitions/paths/service_requests/request_by_id.json +37 -0
  97. data/lib/definitions/paths/sites/site_by_id.json +74 -0
  98. data/lib/definitions/paths/sites/sites.json +62 -0
  99. data/lib/definitions/paths/softwares/software_by_id.json +24 -0
  100. data/lib/definitions/paths/softwares/softwares.json +36 -0
  101. data/lib/definitions/paths/solutions/solution_by_id.json +83 -0
  102. data/lib/definitions/paths/solutions/solutions.json +69 -0
  103. data/lib/definitions/paths/tasks/task_by_id.json +65 -0
  104. data/lib/definitions/paths/tasks/tasks.json +31 -0
  105. data/lib/definitions/paths/time_tracks/time_track_by_id.json +65 -0
  106. data/lib/definitions/paths/time_tracks/time_tracks.json +66 -0
  107. data/lib/definitions/paths/users/user_by_id.json +83 -0
  108. data/lib/definitions/paths/users/users.json +69 -0
  109. data/lib/definitions/paths/vendors/vendor_by_id.json +74 -0
  110. data/lib/definitions/paths/vendors/vendors.json +62 -0
  111. data/lib/solarwinds/itsm/api/definitions.rb +52 -3
  112. metadata +106 -4
  113. data/lib/definitions/common/schemas/incident.json +0 -78
  114. data/lib/resolved_schema/resolved_schema.json +0 -1
@@ -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
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "components": {
3
+ "schemas": {
4
+ "request": {
5
+ "post": {
6
+ "type": "object",
7
+ "xml": { "name": "/" },
8
+ "properties": {
9
+ "department": {
10
+ "type": "object",
11
+ "required": ["name"],
12
+ "properties": { "$ref": "department.json#/components/schemas/request_properties" }
13
+ }
14
+ }
15
+ },
16
+ "put": {
17
+ "type": "object",
18
+ "xml": { "name": "/" },
19
+ "properties": {
20
+ "department": {
21
+ "type": "object",
22
+ "properties": { "$ref": "department.json#/components/schemas/request_properties" }
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "request_properties": {
28
+ "name": { "type": "string", "example": "Support" },
29
+ "description": { "type": "string", "example": "Support Department" }
30
+ },
31
+ "response": {
32
+ "type": "object",
33
+ "xml": { "name": "/", "wrapped": true },
34
+ "properties": {
35
+ "department": {
36
+ "type": "object",
37
+ "required": ["name"],
38
+ "properties": {
39
+ "id": { "$ref": "../../components.json#/components/response/schemas/id" },
40
+ "name": { "type": "string", "example": "Support" },
41
+ "description": { "type": "string", "example": "Support Department" }
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "components": {
3
+ "schemas": {
4
+ "request": {
5
+ "post": {
6
+ "type": "object",
7
+ "xml": { "name": "/" },
8
+ "properties": {
9
+ "group": {
10
+ "type": "object",
11
+ "required": ["name"],
12
+ "properties": { "$ref": "group.json#/components/schemas/request_properties" }
13
+ }
14
+ }
15
+ },
16
+ "put": {
17
+ "type": "object",
18
+ "xml": { "name": "/" },
19
+ "properties": {
20
+ "group": {
21
+ "type": "object",
22
+ "properties": { "$ref": "group.json#/components/schemas/request_properties" }
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "request_properties": {
28
+ "name": { "type": "string", "example": "Group Name" },
29
+ "description": { "type": "string", "example": "Group Description" },
30
+ "superviser_id": { "$ref": "../../components.json#/components/common/schemas/association_by_id" },
31
+ "custom_fields_values": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values" },
32
+ "custom_fields_values_attributes": { "$ref": "../../components.json#/components/request/schemas/custom_fields_values_attributes" }
33
+ },
34
+ "response": {
35
+ "type": "object",
36
+ "xml": { "name": "/", "wrapped": true },
37
+ "properties": {
38
+ "group": {
39
+ "type": "object",
40
+ "required": ["name"],
41
+ "properties": {
42
+ "id": { "$ref": "../../components.json#/components/response/schemas/id" },
43
+ "name": { "type": "string", "example": "Group Name" },
44
+ "description": { "type": "string", "example": "Group Description" },
45
+ "is_user": { "type": "boolean", "example": false },
46
+ "reports_to": { "$ref": "../../components.json#/components/response/schemas/group_details" },
47
+ "avatar": { "$ref": "../../components.json#/components/response/schemas/avatar" },
48
+ "send_notifications": { "type": "boolean", "example": true },
49
+ "memberships": {
50
+ "type": "array",
51
+ "items": {
52
+ "type": "object",
53
+ "properties": {
54
+ "id": { "$ref": "../../components.json#/components/response/schemas/id" },
55
+ "user": { "type": "string", "example": "John Doe" }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }