@manyos/smileconnect-api 1.39.1 → 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.
- package/app.js +13 -0
- package/conf/clients.json +1 -0
- package/docs/.nojekyll +0 -0
- package/docs/README.md +1 -0
- package/docs/_coverpage.md +12 -0
- package/docs/_media/dataflow.png +0 -0
- package/docs/_media/logo.png +0 -0
- package/docs/_sidebar.md +25 -0
- package/docs/{configuration/adapter.md → adapter.md} +8 -16
- package/docs/architecture.md +8 -0
- package/docs/configuration/clients.md +69 -0
- package/docs/configuration/config.md +323 -0
- package/docs/{eventlog → configuration}/events.md +11 -8
- package/docs/{general/field-management.md → configuration/mapping.md} +2 -72
- package/docs/howto/{worklog-attachment.md → attachments.md} +8 -15
- package/docs/howto/cmdbobjects.md +11 -17
- package/docs/howto/incidents.md +16 -23
- package/docs/howto/token.md +14 -18
- package/docs/howto/{incident-worklogs.md → worklogs.md} +14 -21
- package/docs/index.html +26 -0
- package/docs/openapi.json +2054 -1354
- package/docs/quickstart.md +9 -0
- package/docs/releases.md +11 -0
- package/docs/{configuration/scripts.md → scripts.md} +65 -68
- package/package.json +1 -1
- package/docs/.gitattributes +0 -48
- package/docs/404.html +0 -13
- package/docs/Gemfile +0 -7
- package/docs/Gemfile.lock +0 -249
- package/docs/_config.yml +0 -259
- package/docs/_data/SocialNetworks.yml +0 -92
- package/docs/_data/ui-text.yml +0 -494
- package/docs/_includes/disqus.html +0 -17
- package/docs/_includes/ext-css.html +0 -7
- package/docs/_includes/ext-js.html +0 -7
- package/docs/_includes/fb-comment.html +0 -14
- package/docs/_includes/footer-minimal.html +0 -16
- package/docs/_includes/footer-scripts.html +0 -32
- package/docs/_includes/footer.html +0 -51
- package/docs/_includes/google_analytics.html +0 -14
- package/docs/_includes/gtag.html +0 -11
- package/docs/_includes/gtm_body.html +0 -6
- package/docs/_includes/gtm_head.html +0 -9
- package/docs/_includes/head.html +0 -131
- package/docs/_includes/header.html +0 -76
- package/docs/_includes/just_comments.html +0 -4
- package/docs/_includes/matomo.html +0 -17
- package/docs/_includes/nav.html +0 -57
- package/docs/_includes/social-share.html +0 -42
- package/docs/_includes/staticman-comment.html +0 -22
- package/docs/_includes/staticman-comments.html +0 -81
- package/docs/_layouts/base.html +0 -35
- package/docs/_layouts/default.html +0 -9
- package/docs/_layouts/minimal.html +0 -26
- package/docs/_layouts/page.html +0 -26
- package/docs/_layouts/post.html +0 -82
- package/docs/_posts/2015-02-28-test-markdown.md +0 -77
- package/docs/aboutme.md +0 -18
- package/docs/css/bootstrap-social.css +0 -147
- package/docs/css/bootstrap-theme.css +0 -476
- package/docs/css/bootstrap-theme.css.map +0 -1
- package/docs/css/bootstrap-theme.min.css +0 -5
- package/docs/css/bootstrap.css +0 -6566
- package/docs/css/bootstrap.css.map +0 -1
- package/docs/css/bootstrap.min.css +0 -5
- package/docs/css/main-minimal.css +0 -13
- package/docs/css/main.css +0 -788
- package/docs/css/normalize.css +0 -427
- package/docs/css/pygment_highlights.css +0 -61
- package/docs/css/staticman.css +0 -180
- package/docs/feed.xml +0 -24
- package/docs/general/architecture.md +0 -10
- package/docs/general/config.md +0 -201
- package/docs/general/release-notes.md +0 -9
- package/docs/howto/sample-config.md +0 -518
- package/docs/img/404-southpark.jpg +0 -0
- package/docs/img/avatar-icon.png +0 -0
- package/docs/img/bgimage.png +0 -0
- package/docs/img/gb-isapi.jpg +0 -0
- package/docs/img/install-steps.gif +0 -0
- package/docs/img/workflow.png +0 -0
- package/docs/js/bootstrap.js +0 -2306
- package/docs/js/bootstrap.min.js +0 -7
- package/docs/js/jquery-1.11.2.min.js +0 -4
- package/docs/js/main.js +0 -140
- package/docs/js/staticman.js +0 -54
- package/docs/staticman.yml +0 -110
- /package/docs/{img → _media}/architecture.jpeg +0 -0
- /package/docs/{img → _media}/attachment-upload.png +0 -0
- /package/docs/{getting-started.md → old/getting-started.md} +0 -0
- /package/docs/{index.md → old/index.md} +0 -0
- /package/docs/{installation.md → old/installation.md} +0 -0
- /package/docs/{postinstall.md → old/postinstall.md} +0 -0
- /package/docs/{preinstall.md → old/preinstall.md} +0 -0
- /package/docs/{tags.html → old/tags.html} +0 -0
- /package/docs/{workflow.md → old/workflow.md} +0 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
68
|
+
```json
|
|
76
69
|
"['WLG000000001240':'success']"
|
|
77
|
-
|
|
70
|
+
```
|
|
78
71
|
|
|
79
72
|
### Postman Sample Request / Response
|
|
80
73
|

|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
312
|
+
```
|
|
319
313
|
|
|
320
314
|
### Sample Response
|
|
321
315
|
|
|
322
|
-
|
|
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
|
-
|
|
333
|
+
```
|
package/docs/howto/incidents.md
CHANGED
|
@@ -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
|
-
|
|
37
|
+
```json
|
|
45
38
|
{
|
|
46
39
|
"data": {
|
|
47
40
|
"summary": "New Incident",
|
|
48
41
|
"detailedDescription": "Here are the details"
|
|
49
42
|
}
|
|
50
43
|
}
|
|
51
|
-
|
|
44
|
+
```
|
|
52
45
|
|
|
53
46
|
### Sample Response
|
|
54
47
|
|
|
55
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
202
|
+
```
|
|
210
203
|
|
|
211
204
|
### Sample Response
|
|
212
205
|
|
|
213
|
-
|
|
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
|
-
|
|
237
|
+
```
|
package/docs/howto/token.md
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
layout: page
|
|
3
|
-
title: Authentication
|
|
4
|
-
subtitle: How to get a token
|
|
5
|
-
---
|
|
1
|
+
# Authentication
|
|
6
2
|
|
|
7
|
-
Our API integrates with any OpenID Connect Server for authentication. If you use [Keycloak](https://www.keycloak.org/) as we do, here is how to get a token.
|
|
3
|
+
Our API integrates with any OpenID Connect Server for authentication. If you use [Keycloak](https://www.keycloak.org/), as we do, here is how to get a token.
|
|
8
4
|
|
|
9
|
-
|
|
5
|
+
# Request Definition
|
|
10
6
|
|
|
11
7
|
To create a token you need to do a POST request to your SSO Server token url. Use Basic Authentication with your clientId and secret and sent grant_type=client_credentials as body.
|
|
12
8
|
|
|
13
|
-
|
|
9
|
+
## URL
|
|
14
10
|
|
|
15
11
|
*URL*: https://*sso-fqdn*/auth/realms/*realm*/protocol/openid-connect/token
|
|
16
12
|
|
|
@@ -18,11 +14,11 @@ To create a token you need to do a POST request to your SSO Server token url. Us
|
|
|
18
14
|
|
|
19
15
|
*realm*: Your security realm. e.G. isapi
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
## Headers
|
|
22
18
|
|
|
23
19
|
*Content-Type*: application/x-www-form-urlencoded
|
|
24
20
|
|
|
25
|
-
|
|
21
|
+
## Authorization
|
|
26
22
|
|
|
27
23
|
*Type*: Basic Auth
|
|
28
24
|
|
|
@@ -30,15 +26,15 @@ To create a token you need to do a POST request to your SSO Server token url. Us
|
|
|
30
26
|
|
|
31
27
|
*Password*: Your API Secret
|
|
32
28
|
|
|
33
|
-
|
|
29
|
+
## Body
|
|
34
30
|
|
|
35
31
|
*key*: grant_type
|
|
36
32
|
|
|
37
33
|
*value*: client_credentials
|
|
38
34
|
|
|
39
|
-
|
|
35
|
+
# Sample Request
|
|
40
36
|
|
|
41
|
-
|
|
37
|
+
```json
|
|
42
38
|
POST /auth/realms/itsmproxy/protocol/openid-connect/token HTTP/1.1
|
|
43
39
|
Host: sso.manyos.it
|
|
44
40
|
Content-Type: application/x-www-form-urlencoded
|
|
@@ -49,11 +45,11 @@ Cache-Control: no-cache
|
|
|
49
45
|
Host: sso.manyos.it
|
|
50
46
|
|
|
51
47
|
grant_type=client_credentials
|
|
52
|
-
|
|
48
|
+
```
|
|
53
49
|
|
|
54
|
-
|
|
50
|
+
# Sample Response
|
|
55
51
|
|
|
56
|
-
|
|
52
|
+
```json
|
|
57
53
|
{
|
|
58
54
|
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJFUUYxX01tM0lxaXNscEFNdEpQb0FKQmFiVk5CajRrMXdLUEJYUFlfZDRBIn0.eyJqdGkiOiJmZWFkZjc0OS05OGFhLTQ1MmUtYThlYi04Y2JjNzFlNDNmNjYiLCJleHAiOjE1NjU2MzM1MzUsIm5iZiI6MCwiaWF0IjoxNTY1NjE1NTM1LCJpc3MiOiJodHRwczovL3Nzby5tYW55b3MuaXQvYXV0aC9yZWFsbXMvaXRzbXByb3h5IiwiYXVkIjpbImlzc20iLCJhY2NvdW50Il0sInN1YiI6IjI1NWU5MGRjLTczYWItNDJkOS1iOTUyLTYwY2VjNzE2YzRlOCIsInR5cCI6IkJlYXJlciIsImF6cCI6ImlzbXMiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiJjMmIxZGE3YS1kZGM0LTQ5M2MtYjIwYi0zN2Y0NTExYWQyZTciLCJhY3IiOiIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIm9mZmxpbmVfYWNjZXNzIiwidW1hX2F1dGhvcml6YXRpb24iXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Imlzc20gaXRzbXByb3h5QmFzaWMgY21kYm9iamVjdFJlYWQiLCJjbGllbnRIb3N0IjoiMjEyLjExNC4xMzAuOTMiLCJjbGllbnRJZCI6ImlzbXMiLCJjbGllbnRBZGRyZXNzIjoiMjEyLjExNC4xMzAuOTMifQ.TOdFNfiBUgu5CwWZ6IOCahJkr4FYbWM9hK5yblQR06uDaJkRx_c7NEwVRRXnYPFs9rtAgCycYwYap8hKKZqZpExQmBSmRgHzyMZVEw67V3kiFlNaok83czuE2Ka1vC8le4LbQuLmwOeIWa0UIiOZlxpskZgJ4vBomotewbKC4-w2WwB-5zieuO48aohP8voY6oyYFWNMJJyvlubDbC1eUhCmwMaTOWDw0wtkYQDxKNPX_toPxa8aRIy0rXpRYINRiAP4zsyI9IBSoyAxiHWwMbKutVpnvZsSl_Rny2lsw1xnLWQe2nXlKwAEVYZ7Bz6U6krvi_oRfpWUoP5OdfYKhg",
|
|
59
55
|
"expires_in": 18000,
|
|
@@ -64,8 +60,8 @@ grant_type=client_credentials
|
|
|
64
60
|
"session_state": "c2b1da7a-ddc4-493c-b20b-37f4511ad2e7",
|
|
65
61
|
"scope": "itsmproxy cmdbobjectRead"
|
|
66
62
|
}
|
|
67
|
-
|
|
63
|
+
```
|
|
68
64
|
|
|
69
65
|
You can now use the access token to authorize your requests. Set a header with the key "Authorization" and the value "Bearer <access-token>".
|
|
70
66
|
|
|
71
|
-
Learn more about JSON Web Tokens on [jwt.io](https://jwt.io)
|
|
67
|
+
Learn more about JSON Web Tokens on [jwt.io](https://jwt.io)
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
layout: page
|
|
3
|
-
title: Worklogs
|
|
4
|
-
subtitle: In this guide we'll show you how to create and read worklogs.
|
|
5
|
-
use-site-title: true
|
|
6
|
-
gh-badge: [star, fork, follow]
|
|
7
|
-
gh-repo: daattali/beautiful-jekyll
|
|
8
|
-
---
|
|
1
|
+
# Worklogs
|
|
9
2
|
|
|
10
3
|
In this guide we'll show you how to create and read worklogs. Worklogs can be used with the following object types:
|
|
11
4
|
|
|
@@ -41,13 +34,13 @@ You need to do a GET request to the /v1/incidents/*incidentId*/worklogs endpoint
|
|
|
41
34
|
|
|
42
35
|
*Type*: Bearer
|
|
43
36
|
|
|
44
|
-
Use your [API Token](token.md)
|
|
37
|
+
Use your [API Token](howto/token.md)
|
|
45
38
|
|
|
46
39
|
### Sample Response
|
|
47
40
|
|
|
48
|
-
GET:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs
|
|
41
|
+
GET: https://*api-fqdn*/v1/incidents/INC000000000217/worklogs
|
|
49
42
|
|
|
50
|
-
|
|
43
|
+
```json
|
|
51
44
|
{
|
|
52
45
|
"data": [
|
|
53
46
|
{
|
|
@@ -67,7 +60,7 @@ GET:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs
|
|
|
67
60
|
}
|
|
68
61
|
]
|
|
69
62
|
}
|
|
70
|
-
|
|
63
|
+
```
|
|
71
64
|
|
|
72
65
|
# Get a specifc worklog for an Incident
|
|
73
66
|
|
|
@@ -94,13 +87,13 @@ You need to do a GET request to the /v1/incidents/*incidentId*/worklogs/*worklog
|
|
|
94
87
|
|
|
95
88
|
*Type*: Bearer
|
|
96
89
|
|
|
97
|
-
Use your [API Token](token.md)
|
|
90
|
+
Use your [API Token](howto/token.md)
|
|
98
91
|
|
|
99
92
|
### Sample Response
|
|
100
93
|
|
|
101
|
-
GET:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000000533
|
|
94
|
+
GET: https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000000533
|
|
102
95
|
|
|
103
|
-
|
|
96
|
+
```json
|
|
104
97
|
{
|
|
105
98
|
"data": {
|
|
106
99
|
"summary": "Status Change",
|
|
@@ -116,7 +109,7 @@ GET:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000000533
|
|
|
116
109
|
}
|
|
117
110
|
]
|
|
118
111
|
}
|
|
119
|
-
|
|
112
|
+
```
|
|
120
113
|
|
|
121
114
|
# Create a new worklog
|
|
122
115
|
|
|
@@ -141,7 +134,7 @@ To create a worklog you need to do a POST to the /v1/incidents/*incidentid*/work
|
|
|
141
134
|
|
|
142
135
|
*Type*: Bearer
|
|
143
136
|
|
|
144
|
-
Use your [API Token](token.md)
|
|
137
|
+
Use your [API Token](howto/token.md)
|
|
145
138
|
|
|
146
139
|
### Body
|
|
147
140
|
|
|
@@ -152,7 +145,7 @@ Provide a summary and a detailed text within the *data* attribute.
|
|
|
152
145
|
|
|
153
146
|
### Sample Request
|
|
154
147
|
|
|
155
|
-
POST:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs
|
|
148
|
+
POST: https://*api-fqdn*/v1/incidents/INC000000000217/worklogs
|
|
156
149
|
|
|
157
150
|
{% highlight json linenos %}
|
|
158
151
|
{
|
|
@@ -165,7 +158,7 @@ POST:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs
|
|
|
165
158
|
|
|
166
159
|
### Sample Response
|
|
167
160
|
|
|
168
|
-
|
|
161
|
+
```json
|
|
169
162
|
{
|
|
170
163
|
"data": {
|
|
171
164
|
"summary": "Implementation update",
|
|
@@ -181,6 +174,6 @@ POST:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs
|
|
|
181
174
|
}
|
|
182
175
|
]
|
|
183
176
|
}
|
|
184
|
-
|
|
177
|
+
```
|
|
185
178
|
|
|
186
|
-
To learn how to hanle attachments click [here](
|
|
179
|
+
To learn how to hanle attachments click [here](howto/attachments.md)
|
package/docs/index.html
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<title>Document</title>
|
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
7
|
+
<meta name="description" content="Description">
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
|
9
|
+
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="app"></div>
|
|
13
|
+
<script>
|
|
14
|
+
window.$docsify = {
|
|
15
|
+
name: 'SMILEconnect',
|
|
16
|
+
repo: '',
|
|
17
|
+
coverpage: true,
|
|
18
|
+
loadSidebar: true,
|
|
19
|
+
subMaxLevel: 2
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
22
|
+
<!-- Docsify v4 -->
|
|
23
|
+
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
|
|
24
|
+
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|