solarwinds-itsm-api-definitions 0.2.5 → 0.2.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/Redocly/development.html +57 -23
  3. data/Redocly/index.html +55 -23
  4. data/Redocly/redoc/schema/resolved_schema.json +1 -1
  5. data/lib/definitions/common/components.json +293 -13
  6. data/lib/definitions/common/examples/associations/category.json +12 -0
  7. data/lib/definitions/common/examples/associations/department.json +9 -0
  8. data/lib/definitions/common/examples/associations/group_assignee.json +27 -0
  9. data/lib/definitions/common/examples/associations/site.json +11 -0
  10. data/lib/definitions/common/examples/associations/sub_category.json +11 -0
  11. data/lib/definitions/common/examples/catalog_item.json +6 -28
  12. data/lib/definitions/common/examples/change.json +233 -20
  13. data/lib/definitions/common/examples/change_catalog.json +5 -15
  14. data/lib/definitions/common/examples/change_request.json +2 -1
  15. data/lib/definitions/common/examples/configuration_item.json +17 -18
  16. data/lib/definitions/common/examples/contract.json +281 -0
  17. data/lib/definitions/common/examples/hardware.json +235 -71
  18. data/lib/definitions/common/examples/incident.json +397 -95
  19. data/lib/definitions/common/examples/other_asset.json +211 -0
  20. data/lib/definitions/common/examples/problem.json +212 -13
  21. data/lib/definitions/common/examples/release.json +26 -22
  22. data/lib/definitions/common/examples/service_request.json +10 -14
  23. data/lib/definitions/common/examples/solution.json +54 -0
  24. data/lib/definitions/common/examples/user.json +4 -15
  25. data/lib/definitions/common/schemas/inventory/mobile.json +2 -0
  26. data/lib/definitions/common/schemas/inventory/other_asset.json +2 -2
  27. data/lib/definitions/common/schemas/procurement/purchase_order.json +97 -1
  28. data/lib/definitions/common/schemas/service_desk/catalog_item.json +1 -0
  29. data/lib/definitions/common/schemas/service_desk/change.json +2 -0
  30. data/lib/definitions/common/schemas/service_desk/change_catalog.json +2 -0
  31. data/lib/definitions/common/schemas/service_desk/change_request.json +1 -0
  32. data/lib/definitions/common/schemas/service_desk/incident.json +72 -23
  33. data/lib/definitions/common/schemas/service_desk/problem.json +2 -0
  34. data/lib/definitions/common/schemas/service_desk/release.json +2 -0
  35. data/lib/definitions/common/schemas/service_desk/service_request.json +2 -6
  36. data/lib/definitions/common/schemas/setup/category.json +4 -2
  37. data/lib/definitions/common/schemas/setup/department.json +3 -1
  38. data/lib/definitions/common/schemas/setup/group.json +3 -2
  39. data/lib/definitions/common/schemas/setup/site.json +4 -1
  40. data/lib/definitions/openapi.json +4 -3
  41. data/lib/definitions/paths/changes/change_by_id.json +6 -2
  42. data/lib/definitions/paths/changes/changes.json +6 -2
  43. data/lib/definitions/paths/contracts/contract_by_id.json +9 -2
  44. data/lib/definitions/paths/contracts/contracts.json +6 -1
  45. data/lib/definitions/paths/hardwares/hardware_by_id.json +6 -2
  46. data/lib/definitions/paths/hardwares/hardwares.json +6 -2
  47. data/lib/definitions/paths/incidents/incident_by_id.json +6 -2
  48. data/lib/definitions/paths/incidents/incidents.json +6 -2
  49. data/lib/definitions/paths/other_assets/other_asset_by_id.json +9 -2
  50. data/lib/definitions/paths/other_assets/other_assets.json +6 -1
  51. data/lib/definitions/paths/problems/problem_by_id.json +6 -2
  52. data/lib/definitions/paths/problems/problems.json +6 -2
  53. data/lib/definitions/paths/purchase_orders/purchase_order_by_id.json +3 -2
  54. data/lib/definitions/paths/purchase_orders/purchase_orders.json +3 -2
  55. data/lib/definitions/paths/solutions/solution_by_id.json +6 -2
  56. data/lib/definitions/paths/solutions/solutions.json +6 -2
  57. metadata +15 -6
@@ -3,8 +3,8 @@
3
3
  "info": {
4
4
  "title": "SolarWinds Service Desk API",
5
5
  "description":
6
- "All SolarWinds Service Desk API definitions\n# General Concepts\n## Service URL\nFor US based customers, please use `https://api.samanage.com`\n\n For European based customers, please use `https://apieu.samanage.com`\n\n## Formats\n\nYou can use XML or JSON format for your request.\n\nXML Example: `curl -H \"X-Samanage-Authorization: Bearer TOKEN\" -H \"Accept: application/vnd.samanage.v2.1+xml\" -X GET https://api.samanage.com/incidents.xml`\n\nJSON Example: `curl -H \"X-Samanage-Authorization: Bearer TOKEN\" -H \"Accept: application/vnd.samanage.v2.1+json\" -H \"Content-Type: application/json\" -X GET https://api.samanage.com/incidents.json`\n\nFor create and update, the provided data needs to be in the correct format.\n\nXML Example: `<incident> <field_to_update>content</field_to_update> </incident>`\n\nJSON Example: `{\"incident\": {\"field_to_update\": \"content\"}}`\n\nTo clear fields, use the following format:\n\nXML Example: `<incident> <field_to_update></field_to_update> </incident>`\n\nJSON Example: `{\"incident\": {\"field_to_update\": \"\"}}`\n\n## Authentication\nThe API authentication is token-based. Admins can generate a token directly from the user setup page. The token is needed by the API developer to gain access to specific items in SolarWinds accessible only via the API. When an admin re-generates their token (via the user setup page), all previously generated tokens become invalid.\n\nThe tokens are relatively long strings that resemble the following: <div style=\"word-wrap: break-word;\"> AAAZWV0YXkubmF0YW4rNUBzYW1hbmFnZS5jb20hbGciOiJIUzUxMiJ9.eyJ1c2VyX2ljIjoxMjU2OTQzLCJnZW5lcmF0ZWRfYXQiOiIyMDE3LTA2LTA3IDA5OjE3OjI5In0.j_H15qzJJr9vXGAHCThLEOQrE9GGbjMxZJOs5zAf_iqaGqxlIOAmvPpBx0td_C3r7dliAfXXIgdqhZHVoK1KTwAzd1</div>\n\nIn order to supply the API token you should pass X-Samanage-Authorization header in the following format: “Bearer API_TOKEN_STRING”.\n\nThe API call resembles the following:\n\n`curl -H \"X-Samanage-Authorization: Bearer AAAZWV0YXkubmF0YW4rNUBzYW1hbmFnZS5jb20hbGciOiJIUzUxMiJ9.eyJ1c2VyX2ljIjoxMjU2OTQzLCJnZW5lcmF0ZWRfYXQiOiIyMDE3LTA2LTA3IDA5OjE3OjI5In0.j_H15qzJJr9vXGAHCThLEOQrE9GGbjMxZJOs5zAf_iqaGqxlIOAmvPpBx0td_C3r7dliAfXXIgdqhZHVoK1KTwAzd1\" -H \"Accept: application/vnd.samanage.v2.1+json\" https://api.samanage.com/hardwares.json`\n\nIf the authentication fails, a “401 Unauthorized” message will be returned.\n## Security\nSWSD uses a secured API channel. To connect to the regional API server, use the account admin users’ token information and connect using Token-based authentication. Requests should never be transferred in plain text over the wire. Instead, use SSL version 1.2 or higher (which can be accessed using https://) to ensure that all communication with the server is encrypted and secured.\n## Limitations\nTo ensure API performance and avoid denial of service, we employ API call limits based per minute as defined by the Service Desk plan of the endpoint user.\n\nPackages:\n\nAdvanced Plan - 1000 calls per minute\n\nPremier Plan - 1500 calls per minute\n## Versioning\nClients must provide the version number they are ready to work with in the “Accept” HTTP header. A valid \"Accept\" header should specify current content type and version number. For example, “application/vnd.samanage.v2.1+xml”.\n When no “Accept” header is specified, the API will default to version 2.1.\nIf you request an API version that is no longer supported, the API will respond with an HTTP status code of “406 – Not Acceptable”.\n\nExample: \n`curl -H \"X-Samanage-Authorization: Bearer TOKEN\" -H \"Accept: application/vnd.samanage.v2.1+json\" https://api.samanage.com/hardwares.json`\n## Version History\n* 1.0: Deprecated\n* 1.1: Changed structure of custom_fields_values\n* 1.2: Changed name of “incident_type” to “category” in Catalog items and Incidents\n* 1.3: Updates to incidents or comments will not send an email or a notification to the users. To enable this feature you must add add_callbacks=true to the url.\n* 2.1: Token based authentication\n## Pagination\nEvery response with a large data set will be paginated. The response will include the pagination data as headers and links (formatted as <url>; rel=”relative”). For example:\n\nX-Per-Page: 50\n\nX-Total-Count: 3099\n\nX-Total-Pages: 62\n\nLink: `<https://api.samanage.com/incidents.xml?page=1>`; rel=\"first\",\n\n`<https://api.samanage.com/incidents.xml?page=8>`; rel=\"prev\",\n\n`<https://api.samanage.com/incidents.xml?page=10>`; rel=\"next\",\n\n`<https://api.samanage.com/incidents.xml?page=62>`; rel=\"last\"\n\nYou can request a specific page by providing a “page” parameter. For example, to request the third page of the hardware list, you can use the following command: `curl -H \"X-Samanage-Authorization: Bearer TOKEN\" https://api.samanage.com/hardwares.json?page=3`\n\nTo control the number of rows returned, provide the per_page parameter. For example, to request 100 rows with each results page, you can use the following command: `curl -H \"X-Samanage-Authorization: Bearer TOKEN\" https://api.samanage.com/hardwares.json?per_page=100`\n## API Entry Point\n All communication with the API begins with a list of available services. Although it is possible to get directly to a specific service URL, we advise you begin with the api.xml entry point. This ensures your program will run seamlessly if changes are made to the underlying URLs for services in future versions of the API.\n\n**Request**\n\nGET api.samanage.com/api.json \n`curl -H \"X-Samanage-Authorization: Bearer TOKEN\" -H \"Accept: application/json\" -X GET https://api.samanage.com/api.json`\n\n**Response**\n\n`[{\"name\":\"Computers List\",\"href\":\"https://api.samanage.com/hardwares.json\"},`\n\n`{\"name\":\"Helpdesk Incidents List\",\"href\":\"https://api.samanage.com/incidents.json\"},`\n\n`{\"name\":\"Changes List\",\"href\":\"https://api.samanage.com/changes.json\"},`\n\n`...]`\n## Short / long layout\nFor all APIs, you can specify the layout (short / long). This affects the length of the returned records, and is relevant for changes, contracts, hardwares, incidents, other assets, problems, and solutions.\n\nTo use, add the parameter to the request: “?layout=short” or “?layout=long”. If not present, the default is “short”.\n## Searching\nYou can search for records by using query parameters on top of the base URL. For example, when requesting a list of hardwares, you may want to limit them to only those with a specific IP address. This could be accomplished with a request like -\n\n GET api.samanage.com/hardwares.xml?ip_address=123.456*\n\nHere, ip_address is a query parameter that implements a filter where the IP equals 123.456.xxx.xxx.\n\nOther examples: `https://api.samanage.com/other_assets.json?asset_id=XXXXXXXX`, `https://api.samanage.com/hardwares.json?asset_tag=XXXXXXXX`\n## Date formats\nThe following date formats are allowed as input when updating date fields:\n\n* January 21, 2015\n* January 21 2015\n* Jan 21, 2015\n* Jan 21 2015\n* 21/1/2015\n* 2015/1/21\n* 21-1-2015\n* 2015-1-21\n*21.1.2015 \n* 2015.1.21\n## Custom fields\nTo set custom fields, use the following data format:\n\n XML Example:\n\n`<incident><custom_fields_values>`\n\n`<custom_fields_value><name>field name</name><value>content</value></custom_fields_value>`\n\n`</custom_fields_values></incident>`\n\nJSON Example:\n\n`{\"incident\": {\"custom_fields_values\": {\"custom_fields_value\": [{\"name\": \"field name\",\"value\": \"content\"}]}}}`<br><br><hr></hr>",
7
- "version": "0.2.5",
6
+ "All SolarWinds Service Desk API definitions\n# General Concepts\n## Service URL\nFor US based customers, please use `https://api.samanage.com`\n\n For European based customers, please use `https://apieu.samanage.com`\n\nFor APJ based customers, please use `https://apiau.samanage.com`\n\n## Formats\n\nYou can use XML or JSON format for your request.\n\nXML Example: `curl -H \"X-Samanage-Authorization: Bearer TOKEN\" -H \"Accept: application/vnd.samanage.v2.1+xml\" -X GET https://api.samanage.com/incidents.xml`\n\nJSON Example: `curl -H \"X-Samanage-Authorization: Bearer TOKEN\" -H \"Accept: application/vnd.samanage.v2.1+json\" -H \"Content-Type: application/json\" -X GET https://api.samanage.com/incidents.json`\n\nFor create and update, the provided data needs to be in the correct format.\n\nXML Example: `<incident> <field_to_update>content</field_to_update> </incident>`\n\nJSON Example: `{\"incident\": {\"field_to_update\": \"content\"}}`\n\nTo clear fields, use the following format:\n\nXML Example: `<incident> <field_to_update></field_to_update> </incident>`\n\nJSON Example: `{\"incident\": {\"field_to_update\": \"\"}}`\n\n## Authentication\nThe API authentication is token-based. Admins can generate a token directly from the user setup page. The token is needed by the API developer to gain access to specific items in SolarWinds accessible only via the API. For more details click here [Token authentication for API integration](https://documentation.solarwinds.com/en/success_center/swsd/content/completeguidetoswsd/token-authentication-for-api-integration.htm). When an admin re-generates their token (via the user setup page), all previously generated tokens become invalid.\n\nThe tokens are relatively long strings that resemble the following: <div style=\"word-wrap: break-word;\"> AAAZWV0YXkubmF0YW4rNUBzYW1hbmFnZS5jb20hbGciOiJIUzUxMiJ9.eyJ1c2VyX2ljIjoxMjU2OTQzLCJnZW5lcmF0ZWRfYXQiOiIyMDE3LTA2LTA3IDA5OjE3OjI5In0.j_H15qzJJr9vXGAHCThLEOQrE9GGbjMxZJOs5zAf_iqaGqxlIOAmvPpBx0td_C3r7dliAfXXIgdqhZHVoK1KTwAzd1</div>\n\nIn order to supply the API token you should pass X-Samanage-Authorization header in the following format: “Bearer API_TOKEN_STRING”.\n\nThe API call resembles the following:\n\n`curl -H \"X-Samanage-Authorization: Bearer AAAZWV0YXkubmF0YW4rNUBzYW1hbmFnZS5jb20hbGciOiJIUzUxMiJ9.eyJ1c2VyX2ljIjoxMjU2OTQzLCJnZW5lcmF0ZWRfYXQiOiIyMDE3LTA2LTA3IDA5OjE3OjI5In0.j_H15qzJJr9vXGAHCThLEOQrE9GGbjMxZJOs5zAf_iqaGqxlIOAmvPpBx0td_C3r7dliAfXXIgdqhZHVoK1KTwAzd1\" -H \"Accept: application/vnd.samanage.v2.1+json\" https://api.samanage.com/hardwares.json`\n\nIf the authentication fails, a “401 Unauthorized” message will be returned.\n## Security\nSWSD uses a secured API channel. To connect to the regional API server, use the account admin users’ token information and connect using Token-based authentication. Requests should never be transferred in plain text over the wire. Instead, use SSL version 1.2 or higher (which can be accessed using https://) to ensure that all communication with the server is encrypted and secured.\n## Limitations\nTo ensure API performance and avoid denial of service, we employ API call limits based per minute as defined by the Service Desk plan of the endpoint user.\n\nPackages:\n\nAdvanced Plan - 1000 calls per minute\n\nPremier Plan - 1500 calls per minute\n## Versioning\nClients must provide the version number they are ready to work with in the “Accept” HTTP header. A valid \"Accept\" header should specify current content type and version number. For example, “application/vnd.samanage.v2.1+xml”.\n When no “Accept” header is specified, the API will default to version 2.1.\nIf you request an API version that is no longer supported, the API will respond with an HTTP status code of “406 – Not Acceptable”.\n\nExample: \n`curl -H \"X-Samanage-Authorization: Bearer TOKEN\" -H \"Accept: application/vnd.samanage.v2.1+json\" https://api.samanage.com/hardwares.json`\n## Updates History\n## Pagination\nEvery response with a large data set will be paginated. The response will include the pagination data as headers and links (formatted as <url>; rel=”relative”). For example:\n\nX-Per-Page: 50\n\nX-Total-Count: 3099\n\nX-Total-Pages: 62\n\nLink: `<https://api.samanage.com/incidents.xml?page=1>`; rel=\"first\",\n\n`<https://api.samanage.com/incidents.xml?page=8>`; rel=\"prev\",\n\n`<https://api.samanage.com/incidents.xml?page=10>`; rel=\"next\",\n\n`<https://api.samanage.com/incidents.xml?page=62>`; rel=\"last\"\n\nYou can request a specific page by providing a “page” parameter. For example, to request the third page of the hardware list, you can use the following command: `curl -H \"X-Samanage-Authorization: Bearer TOKEN\" https://api.samanage.com/hardwares.json?page=3`\n\nTo control the number of rows returned, provide the per_page parameter. For example, to request 100 rows with each results page, you can use the following command: `curl -H \"X-Samanage-Authorization: Bearer TOKEN\" https://api.samanage.com/hardwares.json?per_page=100`\n## API Entry Point\n All communication with the API begins with a list of available services. Although it is possible to get directly to a specific service URL, we advise you begin with the api.xml entry point. This ensures your program will run seamlessly if changes are made to the underlying URLs for services in future versions of the API.\n\n**Request**\n\nGET api.samanage.com/api.json \n`curl -H \"X-Samanage-Authorization: Bearer TOKEN\" -H \"Accept: application/json\" -X GET https://api.samanage.com/api.json`\n\n**Response**\n\n`[{\"name\":\"Computers List\",\"href\":\"https://api.samanage.com/hardwares.json\"},`\n\n`{\"name\":\"Helpdesk Incidents List\",\"href\":\"https://api.samanage.com/incidents.json\"},`\n\n`{\"name\":\"Changes List\",\"href\":\"https://api.samanage.com/changes.json\"},`\n\n`...]`\n## Short / long layout\nFor all APIs, you can specify the layout (short / long). This affects the length of the returned records, and is relevant for changes, contracts, hardwares, incidents, other assets, problems, and solutions.\n\nTo use, add the parameter to the request: “?layout=short” or “?layout=long”. If not present, the default is “short”.\n## Searching\nYou can search for records by using query parameters on top of the base URL. For example, when requesting a list of hardwares, you may want to limit them to only those with a specific IP address. This could be accomplished with a request like -\n\n GET api.samanage.com/hardwares.xml?ip_address=123.456*\n\nHere, ip_address is a query parameter that implements a filter where the IP equals 123.456.xxx.xxx.\n\nOther examples: `https://api.samanage.com/other_assets.json?asset_id=XXXXXXXX`, `https://api.samanage.com/hardwares.json?asset_tag=XXXXXXXX`\n## Date formats\nThe following date formats are allowed as input when updating date fields:\n\n* January 21, 2015\n* January 21 2015\n* Jan 21, 2015\n* Jan 21 2015\n* 21/1/2015\n* 2015/1/21\n* 21-1-2015\n* 2015-1-21\n*21.1.2015 \n* 2015.1.21\n## Custom fields\nTo set custom fields, use the following data format:\n\n XML Example:\n\n`<incident><custom_fields_values>`\n\n`<custom_fields_value><name>field name</name><value>content</value></custom_fields_value>`\n\n`</custom_fields_values></incident>`\n\nJSON Example:\n\n`{\"incident\": {\"custom_fields_values\": {\"custom_fields_value\": [{\"name\": \"field name\",\"value\": \"content\"}]}}}`\n## API filtering\nYou have two options for filtering: by days or by time. You can also use custom ranges for filtering by days.\n\n**Filter by fixed days or time**\n\n* Filter by fixed days\n\n `{api.samanage.com}/incidents?updated={days} - Last X days` - Options for Last X days: 1-90, or 365 (example: 365)\n\n* Filter by relative times\n\n `{api.samanage.com}/incidents?updated={hours}h - Last X hours` - Options for hours: 1-23 (example: 7h)\n\n**Filter using a custom range**\n\n* Select the date and time range in ISO 8601 UTC format.\n\n* Filter by updated_from and updated_to.\n\n &#9675; Updated_from indicates the range start.\n\n &#9675; Updated_to indicates the range end.\n\n **Examples:**\n\n Get incidents updated in a specific date/time range - `incidents.json?updated_from='2023-11-29T08:00'&updated_to='2023-11-30T08:00'`\n\n Get incidents updated from a specific date/time until now - `incidents.json?updated_from='2023-11-29T08:00'`\n\n Get incidents created in a specific date/time range - `incidents.json?created_from='2023-11-29T08:00'&created_to='2023-11-30T08:00'`\n\n Get incidents created from a specific date/time until now - `incidents.json?created_from='2023-11-29T08:00'`\n\n**Filter using a custom date (custom_gte to custom_lte option)** - *Deprecated*\n\n &nbsp; &nbsp; **Examples:**\n\n &nbsp; &nbsp; Get all incidents with an updated or created date greater than or equal to a specific date and less than or equal to a different specific date -\n\n &nbsp; &nbsp; `{api.samanage.com}/incidents?updated=Select Date Range&updated_custom_gte={Date/Datetime}&updated_custom_lte={Date/datetime}`<br><br><hr></hr>",
7
+ "version": "0.2.19",
8
8
  "x-logo": {
9
9
  "url": "https://tse4.mm.bing.net/th?id=OIP.lhiASqIhZ7Ow90BTOuu5kAHaEH&pid=Api&P=0&w=301&h=168",
10
10
  "href": "https://support.solarwinds.com"
@@ -17,7 +17,8 @@
17
17
  },
18
18
  "servers": [
19
19
  { "url": "https://api.samanage.com" },
20
- { "url": "https://apieu.samanage.com" }
20
+ { "url": "https://apieu.samanage.com" },
21
+ { "url": "https://apiau.samanage.com" }
21
22
  ],
22
23
  "paths": {
23
24
  "/incidents/{id}": { "$ref": "paths/incidents/incident_by_id.json" },
@@ -5,7 +5,8 @@
5
5
  "tags": ["Change"],
6
6
  "parameters": [
7
7
  { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
- { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
8
+ { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
9
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_changes" }
9
10
  ],
10
11
  "responses": {
11
12
  "200": {
@@ -13,7 +14,10 @@
13
14
  "content": {
14
15
  "application/json": {
15
16
  "schema": { "$ref": "../../common/schemas/service_desk/change.json#/components/schemas/response" },
16
- "example": { "$ref": "../../common/examples/change.json#/examples/response/json" }
17
+ "examples": {
18
+ "layout=short": { "value": { "$ref": "../../common/examples/change.json#/examples/response/json" } },
19
+ "layout=long": { "value": { "$ref": "../../common/examples/change.json#/examples/response_long/json" } }
20
+ }
17
21
  },
18
22
  "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/change.json#/components/schemas/response" } }
19
23
  }
@@ -4,7 +4,8 @@
4
4
  "description": "List of changes",
5
5
  "tags": ["Change"],
6
6
  "parameters": [
7
- { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
7
+ { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_changes" }
8
9
  ],
9
10
  "responses": {
10
11
  "200": {
@@ -16,7 +17,10 @@
16
17
  "type": "array",
17
18
  "items": { "allOf": [{ "$ref": "../../common/schemas/service_desk/change.json#/components/schemas/response" }] }
18
19
  },
19
- "example": [{ "$ref": "../../common/examples/change.json#/examples/response/json" }]
20
+ "examples": {
21
+ "layout=short": { "value": [{ "$ref": "../../common/examples/change.json#/examples/response/json" }] },
22
+ "layout=long": { "value": [{ "$ref": "../../common/examples/change.json#/examples/response_long/json" }] }
23
+ }
20
24
  },
21
25
  "application/xml": {
22
26
  "schema": {
@@ -5,13 +5,20 @@
5
5
  "tags": ["Contract"],
6
6
  "parameters": [
7
7
  { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
- { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
8
+ { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
9
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_contracts" }
9
10
  ],
10
11
  "responses": {
11
12
  "200": {
12
13
  "description": "Object was returned correctly",
13
14
  "content": {
14
- "application/json": { "schema": { "$ref": "../../common/schemas/procurement/contract.json#/components/schemas/response" } },
15
+ "application/json": {
16
+ "schema": { "$ref": "../../common/schemas/procurement/contract.json#/components/schemas/response" },
17
+ "examples": {
18
+ "layout=short": { "value": { "$ref": "../../common/examples/contract.json#/examples/response/json" } },
19
+ "layout=long": { "value": { "$ref": "../../common/examples/contract.json#/examples/response_long/json" } }
20
+ }
21
+ },
15
22
  "application/xml": { "schema": { "$ref": "../../common/schemas/procurement/contract.json#/components/schemas/response" } }
16
23
  }
17
24
  },
@@ -4,7 +4,8 @@
4
4
  "description": "List of contracts",
5
5
  "tags": ["Contract"],
6
6
  "parameters": [
7
- { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
7
+ { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_contracts" }
8
9
  ],
9
10
  "responses": {
10
11
  "200": {
@@ -15,6 +16,10 @@
15
16
  "description": "List of contracts",
16
17
  "type": "array",
17
18
  "items": { "$ref": "../../common/schemas/procurement/contract.json#/components/schemas/response" }
19
+ },
20
+ "examples": {
21
+ "layout=short": { "value": [{ "$ref": "../../common/examples/contract.json#/examples/response/json" }] },
22
+ "layout=long": { "value": [{ "$ref": "../../common/examples/contract.json#/examples/response_long/json" }] }
18
23
  }
19
24
  },
20
25
  "application/xml": {
@@ -5,7 +5,8 @@
5
5
  "tags": ["Hardware"],
6
6
  "parameters": [
7
7
  { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
- { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
8
+ { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
9
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_hardwares" }
9
10
  ],
10
11
  "responses": {
11
12
  "200": {
@@ -13,7 +14,10 @@
13
14
  "content": {
14
15
  "application/json": {
15
16
  "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/response" },
16
- "example": { "$ref": "../../common/examples/hardware.json#/examples/response" }
17
+ "examples": {
18
+ "layout=short": { "value": { "$ref": "../../common/examples/hardware.json#/examples/response/json" } },
19
+ "layout=long": { "value": { "$ref": "../../common/examples/hardware.json#/examples/response_long/json" } }
20
+ }
17
21
  },
18
22
  "application/xml": { "schema": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/response" } }
19
23
  }
@@ -4,7 +4,8 @@
4
4
  "description": "List of hardwares",
5
5
  "tags": ["Hardware"],
6
6
  "parameters": [
7
- { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
7
+ { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_hardwares" }
8
9
  ],
9
10
  "responses": {
10
11
  "200": {
@@ -16,7 +17,10 @@
16
17
  "type": "array",
17
18
  "items": { "$ref": "../../common/schemas/inventory/hardware.json#/components/schemas/response" }
18
19
  },
19
- "example": [{ "$ref": "../../common/examples/hardware.json#/examples/response" }]
20
+ "examples": {
21
+ "layout=short": { "value": [{ "$ref": "../../common/examples/hardware.json#/examples/response/json" }] },
22
+ "layout=long": { "value": [{ "$ref": "../../common/examples/hardware.json#/examples/response_long/json" }] }
23
+ }
20
24
  },
21
25
  "application/xml": {
22
26
  "schema": {
@@ -5,7 +5,8 @@
5
5
  "tags": ["Incident"],
6
6
  "parameters": [
7
7
  { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
- { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
8
+ { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
9
+ { "$ref": "../../common/components.json#/components/request/parameters/layout" }
9
10
  ],
10
11
  "responses": {
11
12
  "200": {
@@ -13,7 +14,10 @@
13
14
  "content": {
14
15
  "application/json": {
15
16
  "schema": { "$ref": "../../common/schemas/service_desk/incident.json#/components/schemas/response" },
16
- "example": { "$ref": "../../common/examples/incident.json#/examples/response/json" }
17
+ "examples": {
18
+ "layout=short": { "value": { "$ref": "../../common/examples/incident.json#/examples/response/json" } },
19
+ "layout=long": { "value": { "$ref": "../../common/examples/incident.json#/examples/response_long/json" } }
20
+ }
17
21
  },
18
22
  "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/incident.json#/components/schemas/response" } }
19
23
  }
@@ -5,7 +5,8 @@
5
5
  "tags": ["Incident"],
6
6
  "parameters": [
7
7
  { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
- { "$ref": "../../common/components.json#/components/request/parameters/filter" }
8
+ { "$ref": "../../common/components.json#/components/request/parameters/filter" },
9
+ { "$ref": "../../common/components.json#/components/request/parameters/layout" }
9
10
  ],
10
11
  "responses": {
11
12
  "200": {
@@ -17,7 +18,10 @@
17
18
  "type": "array",
18
19
  "items": { "$ref": "../../common/schemas/service_desk/incident.json#/components/schemas/response" }
19
20
  },
20
- "example": [{ "$ref": "../../common/examples/incident.json#/examples/response/json" }]
21
+ "examples": {
22
+ "layout=short": { "value": [{ "$ref": "../../common/examples/incident.json#/examples/response/json" }] },
23
+ "layout=long": { "value": [{ "$ref": "../../common/examples/incident.json#/examples/response_long/json" }] }
24
+ }
21
25
  },
22
26
  "application/xml": {
23
27
  "schema": {
@@ -5,13 +5,20 @@
5
5
  "tags": ["Other Asset"],
6
6
  "parameters": [
7
7
  { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
- { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
8
+ { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
9
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_other_assets" }
9
10
  ],
10
11
  "responses": {
11
12
  "200": {
12
13
  "description": "Object was returned correctly",
13
14
  "content": {
14
- "application/json": { "schema": { "$ref": "../../common/schemas/inventory/other_asset.json#/components/schemas/response" } },
15
+ "application/json": {
16
+ "schema": { "$ref": "../../common/schemas/inventory/other_asset.json#/components/schemas/response" },
17
+ "examples": {
18
+ "layout=short": { "value": { "$ref": "../../common/examples/other_asset.json#/examples/response/json" } },
19
+ "layout=long": { "value": { "$ref": "../../common/examples/other_asset.json#/examples/response_long/json" } }
20
+ }
21
+ },
15
22
  "application/xml": { "schema": { "$ref": "../../common/schemas/inventory/other_asset.json#/components/schemas/response" } }
16
23
  }
17
24
  },
@@ -4,7 +4,8 @@
4
4
  "description": "List of other assets",
5
5
  "tags": ["Other Asset"],
6
6
  "parameters": [
7
- { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
7
+ { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_other_assets" }
8
9
  ],
9
10
  "responses": {
10
11
  "200": {
@@ -15,6 +16,10 @@
15
16
  "description": "List of other assets",
16
17
  "type": "array",
17
18
  "items": { "$ref": "../../common/schemas/inventory/other_asset.json#/components/schemas/response" }
19
+ },
20
+ "examples": {
21
+ "layout=short": { "value": [{ "$ref": "../../common/examples/other_asset.json#/examples/response/json" }] },
22
+ "layout=long": { "value": [{ "$ref": "../../common/examples/other_asset.json#/examples/response_long/json" }] }
18
23
  }
19
24
  },
20
25
  "application/xml": {
@@ -5,7 +5,8 @@
5
5
  "tags": ["Problem"],
6
6
  "parameters": [
7
7
  { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
- { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
8
+ { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
9
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_problems" }
9
10
  ],
10
11
  "responses": {
11
12
  "200": {
@@ -13,7 +14,10 @@
13
14
  "content": {
14
15
  "application/json": {
15
16
  "schema": { "$ref": "../../common/schemas/service_desk/problem.json#/components/schemas/response" },
16
- "example": { "$ref": "../../common/examples/problem.json#/examples/response/json" }
17
+ "examples": {
18
+ "layout=short": { "value": { "$ref": "../../common/examples/problem.json#/examples/response/json" } },
19
+ "layout=long": { "value": { "$ref": "../../common/examples/problem.json#/examples/response_long/json" } }
20
+ }
17
21
  },
18
22
  "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/problem.json#/components/schemas/response" } }
19
23
  }
@@ -4,7 +4,8 @@
4
4
  "description": "List of problems",
5
5
  "tags": ["Problem"],
6
6
  "parameters": [
7
- { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
7
+ { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_problems" }
8
9
  ],
9
10
  "responses": {
10
11
  "200": {
@@ -16,7 +17,10 @@
16
17
  "type": "array",
17
18
  "items": { "allOf": [{ "$ref": "../../common/schemas/service_desk/problem.json#/components/schemas/response" }] }
18
19
  },
19
- "example": [{ "$ref": "../../common/examples/problem.json#/examples/response/json" }]
20
+ "examples": {
21
+ "layout=short": { "value": [{ "$ref": "../../common/examples/problem.json#/examples/response/json" }] },
22
+ "layout=long": { "value": [{ "$ref": "../../common/examples/problem.json#/examples/response_long/json" }] }
23
+ }
20
24
  },
21
25
  "application/xml": {
22
26
  "schema": {
@@ -26,14 +26,15 @@
26
26
  "tags": ["Purchase Order"],
27
27
  "parameters": [
28
28
  { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
29
- { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
29
+ { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
30
+ { "$ref": "../../common/components.json#/components/request/parameters/edit_mode" }
30
31
  ],
31
32
  "requestBody": {
32
33
  "required": true,
33
34
  "description": "Purchase Order fields to update",
34
35
  "content": {
35
36
  "application/json": { "schema": { "$ref": "../../common/schemas/procurement/purchase_order.json#/components/schemas/request/put" } },
36
- "application/xml": { "schema": { "$ref": "../../common/schemas/procurement/purchase_order.json#/components/schemas/request/put" } }
37
+ "application/xml": { "schema": { "$ref": "../../common/schemas/procurement/purchase_order.json#/components/schemas/request/put_for_xml" } }
37
38
  }
38
39
  },
39
40
  "responses": {
@@ -37,14 +37,15 @@
37
37
  "description": "Create new purchase order",
38
38
  "tags": ["Purchase Order"],
39
39
  "parameters": [
40
- { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
40
+ { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
41
+ { "$ref": "../../common/components.json#/components/request/parameters/edit_mode" }
41
42
  ],
42
43
  "requestBody": {
43
44
  "required": true,
44
45
  "description": "Purchase order fields to fill",
45
46
  "content": {
46
47
  "application/json": { "schema": { "$ref": "../../common/schemas/procurement/purchase_order.json#/components/schemas/request/post" } },
47
- "application/xml": { "schema": { "$ref": "../../common/schemas/procurement/purchase_order.json#/components/schemas/request/post" } }
48
+ "application/xml": { "schema": { "$ref": "../../common/schemas/procurement/purchase_order.json#/components/schemas/request/post_for_xml" } }
48
49
  }
49
50
  },
50
51
  "responses": {
@@ -5,7 +5,8 @@
5
5
  "tags": ["Solution"],
6
6
  "parameters": [
7
7
  { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
- { "$ref": "../../common/components.json#/components/request/parameters/id_param" }
8
+ { "$ref": "../../common/components.json#/components/request/parameters/id_param" },
9
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_solutions" }
9
10
  ],
10
11
  "responses": {
11
12
  "200": {
@@ -13,7 +14,10 @@
13
14
  "content": {
14
15
  "application/json": {
15
16
  "schema": { "$ref": "../../common/schemas/service_desk/solution.json#/components/schemas/response" },
16
- "example": { "$ref": "../../common/examples/solution.json#/examples/response/json" }
17
+ "examples": {
18
+ "layout=short": { "value": { "$ref": "../../common/examples/solution.json#/examples/response/json" } },
19
+ "layout=long": { "value": { "$ref": "../../common/examples/solution.json#/examples/response_long/json" } }
20
+ }
17
21
  },
18
22
  "application/xml": { "schema": { "$ref": "../../common/schemas/service_desk/solution.json#/components/schemas/response" } }
19
23
  }
@@ -4,7 +4,8 @@
4
4
  "description": "List of solutions",
5
5
  "tags": ["Solution"],
6
6
  "parameters": [
7
- { "$ref": "../../common/components.json#/components/request/parameters/token_param" }
7
+ { "$ref": "../../common/components.json#/components/request/parameters/token_param" },
8
+ { "$ref": "../../common/components.json#/components/request/parameters/layout_solutions" }
8
9
  ],
9
10
  "responses": {
10
11
  "200": {
@@ -16,7 +17,10 @@
16
17
  "type": "array",
17
18
  "items": { "$ref": "../../common/schemas/service_desk/solution.json#/components/schemas/response" }
18
19
  },
19
- "example": [{ "$ref": "../../common/examples/solution.json#/examples/response/json" }]
20
+ "examples": {
21
+ "layout=short": { "value": [{ "$ref": "../../common/examples/solution.json#/examples/response/json" }] },
22
+ "layout=long": { "value": [{ "$ref": "../../common/examples/solution.json#/examples/response_long/json" }] }
23
+ }
20
24
  },
21
25
  "application/xml": {
22
26
  "schema": {
metadata CHANGED
@@ -1,9 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solarwinds-itsm-api-definitions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.19
5
5
  platform: ruby
6
6
  authors:
7
+ - Alexander Nagiev
7
8
  - Maor Ovadia
8
9
  - Jonathan Goldstein
9
10
  - Darth Vader
@@ -11,13 +12,14 @@ authors:
11
12
  - Guy Frieman
12
13
  - Dor Leventer
13
14
  - Elad Kaufman
14
- autorequire:
15
+ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
- date: 2023-04-23 00:00:00.000000000 Z
18
+ date: 2024-12-22 00:00:00.000000000 Z
18
19
  dependencies: []
19
20
  description: SolarWinds ITSM OpenAPI definitions gem
20
21
  email:
22
+ - alexander.nagiev@solarwinds.com
21
23
  - maor.ovadia@solarwinds.com
22
24
  - jonathan.goldstein@solarwinds.com
23
25
  - sagi.gold@solarwinds.com
@@ -33,13 +35,20 @@ files:
33
35
  - Redocly/redoc/favicon.ico
34
36
  - Redocly/redoc/schema/resolved_schema.json
35
37
  - lib/definitions/common/components.json
38
+ - lib/definitions/common/examples/associations/category.json
39
+ - lib/definitions/common/examples/associations/department.json
40
+ - lib/definitions/common/examples/associations/group_assignee.json
41
+ - lib/definitions/common/examples/associations/site.json
42
+ - lib/definitions/common/examples/associations/sub_category.json
36
43
  - lib/definitions/common/examples/catalog_item.json
37
44
  - lib/definitions/common/examples/change.json
38
45
  - lib/definitions/common/examples/change_catalog.json
39
46
  - lib/definitions/common/examples/change_request.json
40
47
  - lib/definitions/common/examples/configuration_item.json
48
+ - lib/definitions/common/examples/contract.json
41
49
  - lib/definitions/common/examples/hardware.json
42
50
  - lib/definitions/common/examples/incident.json
51
+ - lib/definitions/common/examples/other_asset.json
43
52
  - lib/definitions/common/examples/problem.json
44
53
  - lib/definitions/common/examples/release.json
45
54
  - lib/definitions/common/examples/service_request.json
@@ -149,7 +158,7 @@ homepage: https://rubygems.org/gems/solarwinds-itsm-api-definitions
149
158
  licenses:
150
159
  - MIT
151
160
  metadata: {}
152
- post_install_message:
161
+ post_install_message:
153
162
  rdoc_options: []
154
163
  require_paths:
155
164
  - lib
@@ -164,8 +173,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
173
  - !ruby/object:Gem::Version
165
174
  version: '0'
166
175
  requirements: []
167
- rubygems_version: 3.1.6
168
- signing_key:
176
+ rubygems_version: 3.4.10
177
+ signing_key:
169
178
  specification_version: 4
170
179
  summary: OpenAPI definitions
171
180
  test_files: []