@manyos/smileconnect-api 1.39.0 → 1.40.0

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 (101) hide show
  1. package/app.js +14 -2
  2. package/conf/clients.json +1 -0
  3. package/docs/.nojekyll +0 -0
  4. package/docs/README.md +1 -0
  5. package/docs/_coverpage.md +12 -0
  6. package/docs/_media/dataflow.png +0 -0
  7. package/docs/_media/logo.png +0 -0
  8. package/docs/_sidebar.md +25 -0
  9. package/docs/adapter.md +309 -0
  10. package/docs/architecture.md +8 -0
  11. package/docs/configuration/clients.md +69 -0
  12. package/docs/configuration/config.md +323 -0
  13. package/docs/{eventlog → configuration}/events.md +11 -8
  14. package/docs/{general/field-management.md → configuration/mapping.md} +2 -72
  15. package/docs/howto/{worklog-attachment.md → attachments.md} +8 -15
  16. package/docs/howto/cmdbobjects.md +11 -17
  17. package/docs/howto/incidents.md +16 -23
  18. package/docs/howto/token.md +14 -18
  19. package/docs/howto/{incident-worklogs.md → worklogs.md} +14 -21
  20. package/docs/index.html +26 -0
  21. package/docs/openapi.json +2054 -1354
  22. package/docs/quickstart.md +9 -0
  23. package/docs/releases.md +11 -0
  24. package/docs/scripts.md +204 -0
  25. package/package.json +1 -1
  26. package/routes/cmdbObjectRoutes.js +5 -0
  27. package/routes/customFormRoutes.js +2 -0
  28. package/routes/taskRoutes.js +11 -0
  29. package/routes/ticketRoutes.js +2 -0
  30. package/routes/ticketWorkLogRoutes.js +4 -0
  31. package/docs/.gitattributes +0 -48
  32. package/docs/404.html +0 -13
  33. package/docs/Gemfile +0 -7
  34. package/docs/Gemfile.lock +0 -249
  35. package/docs/_config.yml +0 -257
  36. package/docs/_data/SocialNetworks.yml +0 -92
  37. package/docs/_data/ui-text.yml +0 -494
  38. package/docs/_includes/disqus.html +0 -17
  39. package/docs/_includes/ext-css.html +0 -7
  40. package/docs/_includes/ext-js.html +0 -7
  41. package/docs/_includes/fb-comment.html +0 -14
  42. package/docs/_includes/footer-minimal.html +0 -16
  43. package/docs/_includes/footer-scripts.html +0 -32
  44. package/docs/_includes/footer.html +0 -51
  45. package/docs/_includes/google_analytics.html +0 -14
  46. package/docs/_includes/gtag.html +0 -11
  47. package/docs/_includes/gtm_body.html +0 -6
  48. package/docs/_includes/gtm_head.html +0 -9
  49. package/docs/_includes/head.html +0 -131
  50. package/docs/_includes/header.html +0 -76
  51. package/docs/_includes/just_comments.html +0 -4
  52. package/docs/_includes/matomo.html +0 -17
  53. package/docs/_includes/nav.html +0 -57
  54. package/docs/_includes/social-share.html +0 -42
  55. package/docs/_includes/staticman-comment.html +0 -22
  56. package/docs/_includes/staticman-comments.html +0 -81
  57. package/docs/_layouts/base.html +0 -35
  58. package/docs/_layouts/default.html +0 -9
  59. package/docs/_layouts/minimal.html +0 -26
  60. package/docs/_layouts/page.html +0 -26
  61. package/docs/_layouts/post.html +0 -82
  62. package/docs/_posts/2015-02-28-test-markdown.md +0 -77
  63. package/docs/aboutme.md +0 -18
  64. package/docs/css/bootstrap-social.css +0 -147
  65. package/docs/css/bootstrap-theme.css +0 -476
  66. package/docs/css/bootstrap-theme.css.map +0 -1
  67. package/docs/css/bootstrap-theme.min.css +0 -5
  68. package/docs/css/bootstrap.css +0 -6566
  69. package/docs/css/bootstrap.css.map +0 -1
  70. package/docs/css/bootstrap.min.css +0 -5
  71. package/docs/css/main-minimal.css +0 -13
  72. package/docs/css/main.css +0 -788
  73. package/docs/css/normalize.css +0 -427
  74. package/docs/css/pygment_highlights.css +0 -61
  75. package/docs/css/staticman.css +0 -180
  76. package/docs/feed.xml +0 -24
  77. package/docs/general/architecture.md +0 -10
  78. package/docs/general/config.md +0 -201
  79. package/docs/general/release-notes.md +0 -9
  80. package/docs/howto/sample-config.md +0 -518
  81. package/docs/img/404-southpark.jpg +0 -0
  82. package/docs/img/avatar-icon.png +0 -0
  83. package/docs/img/bgimage.png +0 -0
  84. package/docs/img/gb-isapi.jpg +0 -0
  85. package/docs/img/install-steps.gif +0 -0
  86. package/docs/img/workflow.png +0 -0
  87. package/docs/js/bootstrap.js +0 -2306
  88. package/docs/js/bootstrap.min.js +0 -7
  89. package/docs/js/jquery-1.11.2.min.js +0 -4
  90. package/docs/js/main.js +0 -140
  91. package/docs/js/staticman.js +0 -54
  92. package/docs/staticman.yml +0 -110
  93. /package/docs/{img → _media}/architecture.jpeg +0 -0
  94. /package/docs/{img → _media}/attachment-upload.png +0 -0
  95. /package/docs/{getting-started.md → old/getting-started.md} +0 -0
  96. /package/docs/{index.md → old/index.md} +0 -0
  97. /package/docs/{installation.md → old/installation.md} +0 -0
  98. /package/docs/{postinstall.md → old/postinstall.md} +0 -0
  99. /package/docs/{preinstall.md → old/preinstall.md} +0 -0
  100. /package/docs/{tags.html → old/tags.html} +0 -0
  101. /package/docs/{workflow.md → old/workflow.md} +0 -0
@@ -0,0 +1,323 @@
1
+ # Global Application Settings
2
+
3
+ All of the following global configuration options needs to be set as Environment Variables for the different containers.
4
+
5
+ # API
6
+
7
+ ## AR Server Connection
8
+
9
+ ### BASEURL
10
+
11
+ Base URL of the used arrestfulapi
12
+
13
+ Sample:
14
+
15
+ *BASEURL=http://localhost:8080*
16
+
17
+ ### AR_SERVER
18
+
19
+ Remedy Server to connect to.
20
+
21
+ Sample:
22
+
23
+ *AR_SERVER=pier1*
24
+
25
+ ### AR_PORT
26
+
27
+ Remedy Server TCP Port.
28
+
29
+ Sample:
30
+
31
+ *AR_PORT=1234*
32
+
33
+ ### AR_USER
34
+
35
+ Remedy Admin User who is used for all queries.
36
+
37
+ Sample:
38
+
39
+ *AR_USER=Demo*
40
+
41
+ ### AR_PASSWORD
42
+
43
+ Remedy Admin User password.
44
+
45
+ Sample:
46
+
47
+ *AR_PASSWORD=password*
48
+
49
+ ## SSO Connection
50
+
51
+ For a minimum configuration only the SSO Public Key is required.
52
+
53
+ ### SSO_PUBLIC_KEY
54
+
55
+ Public Key used to validate JWT tokens.
56
+
57
+ Sample:
58
+
59
+ *SSO_PUBLIC_KEY=1635rN5xkbubgmuNQCnKKFu7OlAD3QxiDwecg1bJvFhJW9Qj5YhOwGuX54sOSCjmdTcKT1mCHL61FJ5mzxtbrct97zVwXmi4F4KDKj2PsW+qxUg0Jz/06iTVjtv2H1yBq1*
60
+
61
+ ### SSO_AUDIENCE
62
+
63
+ Audience (Clients) which are allowed to use JWT tokens. This parameter is optional. If it is not set, no check against the JWT token will be performed.
64
+
65
+ Sample:
66
+
67
+ *SSO_AUDIENCE=gihub, jira*
68
+
69
+ ### SSO_ISSUER
70
+
71
+ Issuer (SSO Server) of the JWT tokens.
72
+
73
+ Sample:
74
+
75
+ *SSO_ISSUER=https://sso.mydomain.io/auth/realms/itsmproxy*
76
+
77
+ ### SSO_CLIENTNAME_ATTRIBUTE
78
+
79
+ The attribute that contains the client name in the token.
80
+
81
+ Default: *azp*
82
+
83
+ Set this value if you only want to use a single client in the SSO and service accounts as clients in SMILEconnect. This can be used to manage your SMILEconnect clients via a directory service like LDAP/AD. [More Info](https://datatracker.ietf.org/doc/html/rfc6749#section-1.3.3)
84
+
85
+ Sample:
86
+
87
+ *SSO_CLIENTNAME_ATTRIBUTE = "preferred_username"*
88
+
89
+ ### ADMIN_USERS
90
+
91
+ List of users who are allowed to access /v1/appconfig endpoints.
92
+
93
+ Sample:
94
+ ADMIN_USERS=username1, username2
95
+
96
+ ### MASTER_CLIENTS
97
+
98
+ List of clients that can act on behalf of other clients.
99
+
100
+ The URL Parameter *clientId* is used for this.
101
+
102
+ Sample:
103
+ MASTER_CLIENTS=idm,adminTool
104
+
105
+ ## Cache Settings
106
+
107
+ ### CACHETTL_CMDB
108
+ Interval in seconds in which before cached CMDB Data is deleted from the cache.
109
+
110
+ Default: *600*
111
+
112
+ Sample:
113
+
114
+ *CACHETTL_CMDB=2800*
115
+
116
+ ### CACHETTL_ORGDATA
117
+ Interval in seconds in which before cached Org Data like People, Support Groups, Organisations are deleted from the cache.
118
+
119
+ Default: *3600*
120
+
121
+ Sample:
122
+
123
+ *CACHETTL_ORGDATA=7200*
124
+
125
+ ### CACHETTL_TICKETS
126
+
127
+ Interval in seconds in which before cached Ticket Data is deleted from the cache.
128
+
129
+ Default: *1*
130
+
131
+ Sample: 600
132
+
133
+ ### CACHETTL_TASK
134
+
135
+ Interval in seconds in which before cached Task Data is deleted from the cache.
136
+
137
+ Default: *1*
138
+
139
+ Sample:
140
+
141
+ *CACHETTL_TASK=600*
142
+
143
+ ## Logging
144
+
145
+ ### Loglevel
146
+
147
+ Loglevel of the api. Defaults to *error*
148
+
149
+ ## Rate Limits
150
+
151
+ ### RATE_LIMIT
152
+
153
+ Defines how many API requests from a single IP are allowed within a 15min timeframe.
154
+
155
+ Default *10000*
156
+
157
+ Sample:
158
+
159
+ *RATE_LIMIT=600*
160
+
161
+ ### LIMIT_DEFAULT
162
+
163
+ Limits the resultsize of all queries against the Remedy Server. Sets a default that can be overwritten by requests. Can be used to prevent performance issues.
164
+ Affects also relations.
165
+
166
+ Default *unlimited*
167
+
168
+ Sample:
169
+
170
+ *LIMIT_DEFAULT=100*
171
+
172
+ ### LIMIT_MAX
173
+
174
+ Limits the resultsize of all queries against the Remedy Server. Defines a global maximum that can not be overwritten by requests. Will only be overwritten by Limits defined for certains clients. Can be used to prevent performance issues.
175
+ Affects also relations.
176
+
177
+ Default *unlimited*
178
+
179
+ Sample:
180
+
181
+ *LIMIT_MAX=100*
182
+
183
+ ### MAX_HTTP_SOCKETS
184
+
185
+ Defines how many TCP Sockets are used for outgoing connections. (Parallel connections to the Remedy REST API.)
186
+
187
+ Reduce this parameter if you see ECONNRESET or socket hang up errors.
188
+
189
+ This parameter has direct impact on performance.
190
+
191
+ Default *10*
192
+
193
+ Sample:
194
+
195
+ *MAX_HTTP_SOCKETS=15*
196
+
197
+
198
+ # Event Manager
199
+
200
+ ## AR Server Connection
201
+
202
+ ### BASEURL
203
+
204
+ Base URL of the used arrestfulapi
205
+
206
+ Sample:
207
+
208
+ *BASEURL=http://localhost:8080*
209
+
210
+ ### AR_SERVER
211
+
212
+ Remedy Server to connect to.
213
+
214
+ Sample:
215
+
216
+ *AR_SERVER=pier1*
217
+
218
+ ### AR_PORT
219
+
220
+ Remedy Server TCP Port.
221
+
222
+ Sample:
223
+
224
+ *AR_PORT=1234*
225
+
226
+ ### AR_USER
227
+
228
+ Remedy Admin User who is used for all queries.
229
+
230
+ Sample:
231
+
232
+ *AR_USER=Demo*
233
+
234
+ ### AR_PASSWORD
235
+
236
+ Remedy Admin User password.
237
+
238
+ Sample:
239
+
240
+ *AR_PASSWORD=password*
241
+
242
+ ## SSO Connection
243
+
244
+ For a minimum configuration only the SSO Public Key is required.
245
+
246
+ ### SSO_PUBLIC_KEY
247
+
248
+ Public Key used to validate JWT tokens.
249
+
250
+ Sample:
251
+
252
+ *SSO_PUBLIC_KEY=1635rN5xkbubgmuNQCnKKFu7OlAD3QxiDwecg1bJvFhJW9Qj5YhOwGuX54sOSCjmdTcKT1mCHL61FJ5mzxtbrct97zVwXmi4F4KDKj2PsW+qxUg0Jz/06iTVjtv2H1yBq1*
253
+
254
+ ### SSO_AUDIENCE
255
+
256
+ Audience (Clients) which are allowed to use JWT tokens. This parameter is optional. If it is not set, no check against the JWT token will be performed.
257
+
258
+ Sample:
259
+
260
+ *SSO_AUDIENCE=gihub, jira*
261
+
262
+ ### SSO_ISSUER
263
+
264
+ Issuer (SSO Server) of the JWT tokens.
265
+
266
+ Sample:
267
+
268
+ *SSO_ISSUER=https://sso.mydomain.io/auth/realms/itsmproxy*
269
+
270
+
271
+ ## Logging
272
+
273
+ ### Loglevel
274
+
275
+ Loglevel of the api. Defaults to *error*
276
+
277
+ # GUI
278
+
279
+ ## SMILEconnect
280
+
281
+ ### REACT_APP_API_URL
282
+
283
+ The URL where the api is deployed.
284
+
285
+ Sample:
286
+ *REACT_APP_API_URL=https://sc-api.mydomain.io/*
287
+ ###
288
+
289
+ Sample:
290
+ *REACT_APP_TOKEN_REFRESHTIME=30*
291
+
292
+ ### REACT_APP_EVENTMGR_URL
293
+
294
+ The URL where the eventmanager is deployed.
295
+
296
+ Sample:
297
+ *REACT_APP_EVENTMGR_URL=https://sc-event.mydomain.io/*
298
+
299
+
300
+ ## SSO
301
+
302
+ ### REACT_APP_SSO_URL
303
+
304
+ The URL of the OIDC Provider for user authentication
305
+
306
+ Sample:
307
+ *REACT_APP_SSO_URL=https://sso.mydomain.io/auth/realms/itsmproxy*
308
+
309
+ ## GUI
310
+
311
+ ### REACT_APP_GUI_URL
312
+
313
+ The Baseurl where the GUI is deployed.
314
+
315
+ Sample:
316
+ *REACT_APP_GUI_URL=https://sc-gui.mydomain.io/*
317
+
318
+ ### REACT_APP_WIZZARD_URL
319
+
320
+ Url of the Midtier Appwizzard.
321
+
322
+ Sample:
323
+ *REACT_APP_WIZZARD_URL=https://midtier.mydomain.io/arsys/forms/arserver/MYS:SMILEconnect_NewVendor*
@@ -1,24 +1,27 @@
1
- ---
2
- layout: page
3
- title: API Queue Events
4
- subtitle: All events created / processed by the event manager
5
- use-site-title: true
6
- ---
1
+ # Events
2
+
3
+ The following events are generated by API and can be used to react on.
7
4
 
8
5
  # Change
9
6
 
10
7
  * CHG_Query
11
8
 
12
- * CHG_Created
9
+ * CHG_Created
10
+
11
+ * CHG_Modified
12
+
13
+ * CHG_Worklog_Created
13
14
 
14
15
  # Incident
15
16
 
16
- * INC_Worklog_Created
17
+ * INC_Query
17
18
 
18
19
  * INC_Created
19
20
 
20
21
  * INC_Modified
21
22
 
23
+ * INC_Worklog_Created
24
+
22
25
  # CMDB
23
26
 
24
27
  * CMDB_Query
@@ -1,78 +1,8 @@
1
- # Client Config
2
-
3
- On a per client base it can be configured which fields are returned for each object and if a basequery is applied. This expose certain fields only dedicated clients. It also allows to define which rows a client can access. Clients are configured in conf/clients.json
4
-
5
- {% highlight json linenos %}
6
- [
7
- {
8
- "name": "jira",
9
- "config": {
10
- "options" : {
11
- "dateFormat" : "dd.MM.yyyy HH:mm.ss",
12
- "clientLimit": 100
13
- },
14
- "cmdbobject": {
15
- "basequery": "'Data Set Id' = \"BMC.ASSET\" AND ('Mark As Deleted' = \"No\" OR 'Mark As Deleted' = $NULL$) AND 'Class Id' = \"BMC_COMPUTERSYSTEM\"",
16
- "fields": [
17
- "Instance Id",
18
- "Tag Number",
19
- "Name",
20
- "AssetLifecycleStatus",
21
- "Category",
22
- "Item",
23
- "Type",
24
- "Availability",
25
- "Confidentiality",
26
- "Integrity",
27
- "Authenticity",
28
- "Model Number",
29
- "Class Id",
30
- "Reconciliation Identity"
31
- ]
32
- },
33
- "orgdata": {
34
- "basequeryPeople": "'Profile Status' = \"Enabled\"",
35
- "basequeryOrganisation": "'Status'=\"Enabled\"",
36
- "basequerySupportGroup": "'Status'=\"Enabled\""
37
- },
38
- "change": {
39
- "fields": [
40
- "Infrastructure Change ID",
41
- "Categorization Tier 1",
42
- "Categorization Tier 2",
43
- "Categorization Tier 3",
44
- "Product Cat Tier 1",
45
- "Product Cat Tier 2",
46
- "Product Cat Tier 3",
47
- "Product Name (2)",
48
- "Description",
49
- "Detailed Description",
50
- "Status Reason",
51
- "Change Request Status",
52
- "Requested Start Date",
53
- "Requested End Date",
54
- "Scheduled Start Date",
55
- "Scheduled End Date",
56
- "Support Group ID",
57
- "Support Group ID 2",
58
- "Customer Person ID"
59
- ],
60
- "constants" : [
61
- {"name": "Location Company", "value" : "Calbro Services"},
62
- {"name": "Company", "value" : "Calbro Services"},
63
- {"name": "RequesterLoginID", "value" : "Allen"}
64
- ]
65
- }
66
- }
67
- }
68
- ]
69
- {% endhighlight %}
70
-
71
1
  # Field Mappings
72
2
 
73
3
  Field mappings are configured in conf/mapping.json and are used globally for all clients.
74
4
 
75
- {% highlight json linenos %}
5
+ ```json
76
6
  {
77
7
  "cmdbobject":[
78
8
  {"oldName":"Instance Id", "newName" : "id"},
@@ -116,4 +46,4 @@ Field mappings are configured in conf/mapping.json and are used globally for all
116
46
  {"oldName":"TemplateID", "newName" : "template"}
117
47
  ]
118
48
  }
119
- {% endhighlight %}
49
+ ```
@@ -1,11 +1,4 @@
1
- ---
2
- layout: page
3
- title: Attachments
4
- subtitle: In this guide we'll show you how to save and read attachments from worklogs.
5
- use-site-title: true
6
- gh-badge: [star, fork, follow]
7
- gh-repo: daattali/beautiful-jekyll
8
- ---
1
+ # Attachments
9
2
 
10
3
  In this guide we'll show you how to save and read attachments from worklogs.
11
4
 
@@ -14,7 +7,7 @@ In this guide we'll show you how to save and read attachments from worklogs.
14
7
 
15
8
  To store an attachment you first need to create a worklog. The worklog contains an attachment url:
16
9
 
17
- {% highlight json linenos %}
10
+ ```json
18
11
  {
19
12
  "data": {
20
13
  "summary": "Implementation update",
@@ -30,7 +23,7 @@ To store an attachment you first need to create a worklog. The worklog contains
30
23
  }
31
24
  ]
32
25
  }
33
- {% endhighlight %}
26
+ ```
34
27
 
35
28
  This URL will be used to upload or download the attachment.
36
29
 
@@ -70,11 +63,11 @@ Provide the attachment as application/x-www-form-urlencoded with the key "file".
70
63
 
71
64
  ### Sample Response
72
65
 
73
- POST:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000001240/attachment
66
+ POST: https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000001240/attachment
74
67
 
75
- {% highlight json linenos %}
68
+ ```json
76
69
  "['WLG000000001240':'success']"
77
- {% endhighlight %}
70
+ ```
78
71
 
79
72
  ### Postman Sample Request / Response
80
73
  ![architecure of isapi](../img/attachment-upload.png)
@@ -108,6 +101,6 @@ Use your [API Token](token.md)
108
101
 
109
102
  ### Sample Response
110
103
 
111
- GET:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000000533/attachment
104
+ GET: https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000000533/attachment
112
105
 
113
- The file will be returned as application/octet-stream. The filename will be returned in the header Content-disposition. e.g. attachment; filename=90502081_l.jpg
106
+ The file will be returned as application/octet-stream. The filename will be returned in the header Content-disposition. e.g. attachment; filename=90502081_l.jpg
@@ -1,10 +1,4 @@
1
- ---
2
- layout: page
3
- title: Access CMDBObjects
4
- subtitle: In this guide you will learn to do the basic operations with an CMDB Objects.
5
- use-site-title: true
6
- gh-badge: [star, fork, follow]
7
- gh-repo: daattali/beautiful-jekyll
1
+ CMDBObjects
8
2
  ---
9
3
 
10
4
  # Read a CMDBObject
@@ -31,13 +25,13 @@ To read a cmdbobject you need to do a GET request to the /v1/cmdbobjects/*id* en
31
25
 
32
26
  *Type*: Bearer
33
27
 
34
- Use your [API Token](token.md)
28
+ Use your [API Token](howto/token.md)
35
29
 
36
30
  ### Sample Response
37
31
 
38
- GET:https://*api-fqdn*/v1/cmdbobjects/AGGarserver000PMIYWAPL1SMUB5AZ
32
+ GET: https://*api-fqdn*/v1/cmdbobjects/AGGarserver000PMIYWAPL1SMUB5AZ
39
33
 
40
- {% highlight json linenos %}
34
+ ```json
41
35
  {
42
36
  "data": {
43
37
  "id": "AGGarserver000PMIYWAPL1SMUB5AZ",
@@ -265,7 +259,7 @@ GET:https://*api-fqdn*/v1/cmdbobjects/AGGarserver000PMIYWAPL1SMUB5AZ
265
259
  ]
266
260
  }
267
261
  }
268
- {% endhighlight %}
262
+ ```
269
263
 
270
264
  # Search for CMDBObjects
271
265
 
@@ -289,7 +283,7 @@ To search for objects do a POST to the /v1/cmdbobjects/search endpoint of your A
289
283
 
290
284
  *Type*: Bearer
291
285
 
292
- Use your [API Token](token.md)
286
+ Use your [API Token](howto/token.md)
293
287
 
294
288
  ### Body
295
289
 
@@ -297,9 +291,9 @@ Provide the searchString you want to use
297
291
 
298
292
  ### Sample Request
299
293
 
300
- POST:https://*api-fqdn*/v1/cmdbobjects/search
294
+ POST: https://*api-fqdn*/v1/cmdbobjects/search
301
295
 
302
- {% highlight json linenos %}
296
+ ```json
303
297
  {
304
298
  "searchString":"'name' LIKE \"Computer%\"",
305
299
  "getRelations":true,
@@ -315,11 +309,11 @@ POST:https://*api-fqdn*/v1/cmdbobjects/search
315
309
  "limit": 100,
316
310
  "offset": 4
317
311
  }
318
- {% endhighlight %}
312
+ ```
319
313
 
320
314
  ### Sample Response
321
315
 
322
- {% highlight json linenos %}
316
+ ```json
323
317
  {
324
318
  "data": [
325
319
  {
@@ -336,4 +330,4 @@ POST:https://*api-fqdn*/v1/cmdbobjects/search
336
330
  ],
337
331
  "included": {}
338
332
  }
339
- {% endhighlight %}
333
+ ```
@@ -1,13 +1,6 @@
1
- ---
2
- layout: page
3
- title: Incident handling
4
- subtitle: In this guide you will learn to do the basic operations with an incident.
5
- use-site-title: true
6
- gh-badge: [star, fork, follow]
7
- gh-repo: daattali/beautiful-jekyll
8
- ---
1
+ # Incdent Requests
9
2
 
10
- In this guide we model the full lifecylce of a simple inbound API that delivers Incidents into your system. First we'll create one. We will then read it again and later resolve it.
3
+ In this guide we model the full lifecylce of a simple inbound API that delivers Incidents into your system. First we'll create one. We will then read it again and later resolve it.
11
4
 
12
5
  # Create an Incident
13
6
 
@@ -39,20 +32,20 @@ Provide all your needed incident data (see mapping -> new Incident) within the *
39
32
 
40
33
  ### Sample Request
41
34
 
42
- POST:https://*api-fqdn*/v1/incidents
35
+ POST: https://*api-fqdn*/v1/incidents
43
36
 
44
- {% highlight json linenos %}
37
+ ```json
45
38
  {
46
39
  "data": {
47
40
  "summary": "New Incident",
48
41
  "detailedDescription": "Here are the details"
49
42
  }
50
43
  }
51
- {% endhighlight %}
44
+ ```
52
45
 
53
46
  ### Sample Response
54
47
 
55
- {% highlight json linenos %}
48
+ ```json
56
49
  {
57
50
  "data": {
58
51
  "id": "INC000000000217",
@@ -91,7 +84,7 @@ POST:https://*api-fqdn*/v1/incidents
91
84
  ]
92
85
  }
93
86
  }
94
- {% endhighlight %}
87
+ ```
95
88
 
96
89
  # Read an Incident
97
90
 
@@ -121,9 +114,9 @@ Use your [API Token](token.md)
121
114
 
122
115
  ### Sample Response
123
116
 
124
- GET:https://*api-fqdn*/v1/incidents/INC000000000217
117
+ GET: https://*api-fqdn*/v1/incidents/INC000000000217
125
118
 
126
- {% highlight json linenos %}
119
+ ```
127
120
  {
128
121
  "data": {
129
122
  "id": "INC000000000217",
@@ -162,7 +155,7 @@ GET:https://*api-fqdn*/v1/incidents/INC000000000217
162
155
  ]
163
156
  }
164
157
  }
165
- {% endhighlight %}
158
+ ```
166
159
 
167
160
  # Update an Incident
168
161
 
@@ -196,21 +189,21 @@ Provide all the attributes you want to update.
196
189
 
197
190
  ### Sample Request
198
191
 
199
- PUT:https://*api-fqdn*/v1/incidents/INC000000000217
192
+ PUT: https://*api-fqdn*/v1/incidents/INC000000000217
200
193
 
201
- {% highlight json linenos %}
194
+ ```json
202
195
  {
203
196
  "data": {
204
197
  "status": "Resolved",
205
- "statusReason" : "No Further Action Required",
198
+ "statusReason" : "No Further Action Required",
206
199
  "resolution": "Please restart your computer."
207
200
  }
208
201
  }
209
- {% endhighlight %}
202
+ ```
210
203
 
211
204
  ### Sample Response
212
205
 
213
- {% highlight json linenos %}
206
+ ```
214
207
  {
215
208
  "data": {
216
209
  "id": "INC000000000217",
@@ -241,4 +234,4 @@ PUT:https://*api-fqdn*/v1/incidents/INC000000000217
241
234
  },
242
235
  "included": {}
243
236
  }
244
- {% endhighlight %}
237
+ ```