Changes for page API

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

From version 1.1
edited by chaney08
on 2021/05/28 16:28
Change comment: There is no comment for this version
To version 3.1
edited by chaney08
on 2021/05/28 16:49
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,5 +1,43 @@
1 -== API ==
1 +
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/]].
3 3  
5 +{{velocity}}
4 4  
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 +
5 5  === ===
image-20210528164907-1.gif
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.chaney08
Size
... ... @@ -1,0 +1,1 @@
1 +43 bytes
Content