Warning:  Due to planned infrastructure maintenance, the EBRAINS Wiki and EBRAINS Support system will be unavailable for up to three days starting Monday, 14 July. During this period, both services will be inaccessible, and any emails sent to the support address will not be received.

Attention: We are currently experiencing some issues with the EBRAINS Drive. Please bear with us as we fix this issue. We apologise for any inconvenience caused.


Wiki source code of API

Last modified by messines on 2024/10/30 19:47

Show last authors
1
2
3 To use this API, 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 is available [[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
5 {{velocity}}
6
7 {{html clean="false"}}
8 <link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@latest/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 === ===