Skip to content

Commit 89ba7da

Browse files
author
Matteo Joliveau
committed
Add OpenAPI link
Signed-off-by: Matteo Joliveau <[email protected]>
1 parent 1aae4d3 commit 89ba7da

File tree

5 files changed

+41
-33
lines changed

5 files changed

+41
-33
lines changed

.vuepress/config.js

+12-31
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ module.exports = {
77
{ text: 'Users Guide', link: '/users/' },
88
{ text: 'Developers Guide', link: '/developers/' },
99
{ text: 'Website', link: 'https://enseada.io', target: '_blank' },
10-
{ text: 'Source code', link: 'https://github.com/enseadaio/enseada', target: '_blank' },
1110
],
11+
repo: 'enseadaio/enseada',
12+
repoLabel: 'Source Code',
13+
docsRepo: 'enseadaio/documentation',
14+
editLinks: true,
1215
displayAllHeaders: true,
16+
lastUpdated: 'Last Updated',
1317
sidebar: {
1418
'/users/': [
1519
'',
@@ -23,39 +27,16 @@ module.exports = {
2327
'ui',
2428
],
2529
'/developers/': [
26-
'apis',
30+
'',
31+
{
32+
title: 'API Reference',
33+
path: 'https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/enseadaio/enseada/develop/docs/openapi.yml',
34+
},
2735
],
2836
'/': [
2937
'',
3038
]
3139
},
32-
// sidebar: [
33-
// {
34-
// title: 'Getting Started',
35-
// path: '/getting-started',
36-
// },
37-
// {
38-
// title: 'Install and Update',
39-
// path: '/install'
40-
// },
41-
// {
42-
// title: 'User Guide',
43-
// path: '/users/',
44-
// children: [
45-
// // 'authentication',
46-
// // 'authorization',
47-
// // 'package-registries',
48-
// // 'ui',
49-
// ]
50-
// },
51-
// {
52-
// title: 'Developer Guide',
53-
// path: '/developers/',
54-
55-
// children: [
56-
// 'apis',
57-
// ]
58-
// },
59-
// ]
60-
}
40+
},
41+
plugins: ['@vuepress/register-components'],
6142
}

developers/README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
# Developer Guide
1+
# Developer Guide
2+
3+
Enseada is designed to be easily integrated into other systems.
4+
All functionalities are available through a RESTful API protected by OAuth tokens.
5+
6+
The scopes required by each endpoint are defined in the [API Reference documentation](https://redocly.github.io/redoc/?url=https://raw.githubusercontent.com/enseadaio/enseada/develop/docs/openapi.yml#section/Authentication/oauth). Additional access control is evaluated beside the authorized scopes to ensure that the user is allowed to perform the operation.

developers/apis.md

-1
This file was deleted.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"vuepress": "^1.2.0"
1616
},
1717
"devDependencies": {
18+
"@vuepress/plugin-register-components": "^1.4.0",
1819
"rimraf": "^3.0.0"
1920
}
2021
}

yarn.lock

+22
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,13 @@
907907
dependencies:
908908
"@vuepress/shared-utils" "^1.2.0"
909909

910+
"@vuepress/plugin-register-components@^1.4.0":
911+
version "1.4.0"
912+
resolved "https://registry.yarnpkg.com/@vuepress/plugin-register-components/-/plugin-register-components-1.4.0.tgz#0dafefd3baed6cc50b53f9826e84b25d83fed763"
913+
integrity sha512-HmSzCTPVrlJJ8PSIXAvh4RkPy9bGmdrQuAXAtjiiq5rzBjL3uIg2VwzTrKDqf7FkCKs4lcRAEuNxB70bH6tddA==
914+
dependencies:
915+
"@vuepress/shared-utils" "^1.4.0"
916+
910917
"@vuepress/plugin-search@^1.2.0":
911918
version "1.2.0"
912919
resolved "https://registry.yarnpkg.com/@vuepress/plugin-search/-/plugin-search-1.2.0.tgz#0b27c467b7fd42bd4d9e32de0fe2fb81a24bd311"
@@ -927,6 +934,21 @@
927934
semver "^6.0.0"
928935
upath "^1.1.0"
929936

937+
"@vuepress/shared-utils@^1.4.0":
938+
version "1.4.0"
939+
resolved "https://registry.yarnpkg.com/@vuepress/shared-utils/-/shared-utils-1.4.0.tgz#ab4bfcd5c1e3d0e5e384e0c1d0bb86470430c87e"
940+
integrity sha512-6QTv7zMRXAojCuPRIm4aosYfrQO4OREhyxvbFeg/ZMWkVX+xZZQTdE7ZyK/4NAvEgkpjtPTRC1TQYhLJUqC5mQ==
941+
dependencies:
942+
chalk "^2.3.2"
943+
diacritics "^1.3.0"
944+
escape-html "^1.0.3"
945+
fs-extra "^7.0.1"
946+
globby "^9.2.0"
947+
gray-matter "^4.0.1"
948+
hash-sum "^1.0.2"
949+
semver "^6.0.0"
950+
upath "^1.1.0"
951+
930952
"@vuepress/theme-default@^1.2.0":
931953
version "1.2.0"
932954
resolved "https://registry.yarnpkg.com/@vuepress/theme-default/-/theme-default-1.2.0.tgz#3303af21a00031a3482ed1c494508234f545cbf1"

0 commit comments

Comments
 (0)