... |
... |
@@ -1,43 +1,5 @@ |
1 |
|
- |
|
1 |
+== API == |
2 |
2 |
|
3 |
|
-To use this API from your community apps or in CLI, you need a valid access token containing scopes **clb.wiki.read** and/or** clb.wiki.write**, more information about how to fetch an access token and our available scopes [[here>>https://wiki.ebrains.eu/bin/view/Collabs/collaboratory-community-apps/Community%20App%20Developer%20Guide/Authenticating%20with%20your%20OIDC%20client%20and%20fetch%20collab%20user%20info/]]. |
4 |
4 |
|
5 |
|
-{{velocity}} |
6 |
6 |
|
7 |
|
-{{html clean="false"}} |
8 |
|
-<link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@3/swagger-ui.css" /> |
9 |
|
-<style> |
10 |
|
-.swagger-ui .wrapper { clear: both; } |
11 |
|
-.swagger-ui h2.title {margin-top: 0;} |
12 |
|
-</style> |
13 |
|
-<div id="swagger-ui"></div> |
14 |
|
-<script> |
15 |
|
-requirejs.config({ |
16 |
|
- map: { |
17 |
|
- '*': { |
18 |
|
- 'esprima': 'https://unpkg.com/esprima@~4.0/dist/esprima.js' |
19 |
|
- }, |
20 |
|
- } |
21 |
|
-}); |
22 |
|
-require(["https://unpkg.com/swagger-ui-dist@3/swagger-ui-standalone-preset.js", "https://unpkg.com/swagger-ui-dist@3/swagger-ui-bundle.js"], function(SwaggerUIStandalonePreset, SwaggerUIBundle){ |
23 |
|
- const ui = SwaggerUIBundle({ |
24 |
|
- url: "$doc.getAttachmentURL('openapi.json')", |
25 |
|
- dom_id: '#swagger-ui', |
26 |
|
- presets: [ |
27 |
|
- SwaggerUIBundle.presets.apis, |
28 |
|
- SwaggerUIBundle.SwaggerUIStandalonePreset |
29 |
|
- ], |
30 |
|
- //layout: "StandaloneLayout" |
31 |
|
- }) |
32 |
|
-}); |
33 |
|
-</script> |
34 |
|
-<noscript>This feature uses javascript and external scripts from https://unpkg.com/. If you want to use this feature please enable javascript and allow scripts from https://unpkg.com/</noscript> |
35 |
|
-{{/html}} |
36 |
|
- |
37 |
|
-{{/velocity}} |
38 |
|
- |
39 |
|
- |
40 |
|
- |
41 |
|
-[[image:image-20210528164907-1.gif]] |
42 |
|
- |
43 |
43 |
=== === |