Failed to execute template. Cause: [Access denied when checking [script] access to [xwiki:Collaboratory.UX.HbpSkin.WebHome] for user [xwiki:XWiki.Admin]]. Click on this message for details.

Collaboratory API - HBP Wiki

IAM21 instance, do not create collab nor modify a team, your changes will be lost


Wiki source code of Collaboratory API

Last modified by hbpadmin on 2023/05/15 15:16

Show last authors
1 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/]].
2
3 {{velocity}}
4 {{html clean="false"}}
5 <link rel="stylesheet" type="text/css" href="https://unpkg.com/swagger-ui-dist@3/swagger-ui.css" />
6 <style>
7 .swagger-ui .wrapper { clear: both; }
8 .swagger-ui h2.title {margin-top: 0;}
9 </style>
10 <div id="swagger-ui"></div>
11 <script>
12 requirejs.config({
13 map: {
14 '*': {
15 'esprima': 'https://unpkg.com/esprima@~4.0/dist/esprima.js'
16 },
17 }
18 });
19 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){
20 const ui = SwaggerUIBundle({
21 url: "$doc.getAttachmentURL('openapi.json')",
22 dom_id: '#swagger-ui',
23 presets: [
24 SwaggerUIBundle.presets.apis,
25 SwaggerUIBundle.SwaggerUIStandalonePreset
26 ],
27 //layout: "StandaloneLayout"
28 })
29 });
30 </script>
31 {{/html}}
32
33 {{/velocity}}