@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
@@ -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
- ## Request Definition
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
- ### URL
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
- ### Headers
17
+ ## Headers
22
18
 
23
19
  *Content-Type*: application/x-www-form-urlencoded
24
20
 
25
- ### Authorization
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
- ### Body
29
+ ## Body
34
30
 
35
31
  *key*: grant_type
36
32
 
37
33
  *value*: client_credentials
38
34
 
39
- ## Sample Request
35
+ # Sample Request
40
36
 
41
- {% highlight http linenos %}
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
- {% endhighlight %}
48
+ ```
53
49
 
54
- ## Sample Response
50
+ # Sample Response
55
51
 
56
- {% highlight json linenos %}
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
- {% endhighlight %}
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
- {% highlight json linenos %}
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
- {% endhighlight %}
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
- {% highlight json linenos %}
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
- {% endhighlight %}
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
- {% highlight json linenos %}
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
- {% endhighlight %}
177
+ ```
185
178
 
186
- To learn how to hanle attachments click [here](./worklog-attachment.md)
179
+ To learn how to hanle attachments click [here](howto/attachments.md)
@@ -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>