Skip to content

Commit f4a9db9

Browse files
OpenAPI docs (#633)
* explored * Add swagger docs at /api/docs, standardize on /api instead of some /API * Review openapi doc and improvements * Update package-lock.json
1 parent e3da8a3 commit f4a9db9

File tree

39 files changed

+4557
-4130
lines changed

39 files changed

+4557
-4130
lines changed

API/Backend/APIs/routes/apis.js

Lines changed: 0 additions & 1067 deletions
This file was deleted.

API/Backend/APIs/setup.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

API/Backend/Config/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ let setup = {
6767
}
6868

6969
s.app.use(
70-
s.ROOT_PATH + "/API/configure",
70+
s.ROOT_PATH + "/api/configure",
7171
s.ensureAdmin(),
7272
s.checkHeadersCodeInjection,
7373
s.setContentType,

API/Backend/Datasets/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let setup = {
33
//Once the app initializes
44
onceInit: (s) => {
55
s.app.use(
6-
s.ROOT_PATH + "/API/datasets",
6+
s.ROOT_PATH + "/api/datasets",
77
s.ensureAdmin(),
88
s.checkHeadersCodeInjection,
99
s.setContentType,

API/Backend/Draw/setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let setup = {
88
//Once the app initializes
99
onceInit: (s) => {
1010
s.app.use(
11-
s.ROOT_PATH + "/API/files",
11+
s.ROOT_PATH + "/api/files",
1212
s.ensureUser(),
1313
s.checkHeadersCodeInjection,
1414
s.setContentType,
@@ -17,7 +17,7 @@ let setup = {
1717
);
1818

1919
s.app.use(
20-
s.ROOT_PATH + "/API/draw",
20+
s.ROOT_PATH + "/api/draw",
2121
s.ensureUser(),
2222
s.checkHeadersCodeInjection,
2323
s.setContentType,

API/Backend/Geodatasets/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ let setup = {
66
//Once the app initializes
77
onceInit: (s) => {
88
s.app.use(
9-
s.ROOT_PATH + "/API/geodatasets",
9+
s.ROOT_PATH + "/api/geodatasets",
1010
s.ensureAdmin(),
1111
s.checkHeadersCodeInjection,
1212
s.setContentType,

API/Backend/LongTermToken/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let setup = {
33
//Once the app initializes
44
onceInit: (s) => {
55
s.app.use(
6-
s.ROOT_PATH + "/API/longtermtoken",
6+
s.ROOT_PATH + "/api/longtermtoken",
77
s.ensureAdmin(false, true),
88
s.checkHeadersCodeInjection,
99
s.setContentType,

API/Backend/Shortener/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let setup = {
44
//Once the app initializes
55
onceInit: (s) => {
66
s.app.use(
7-
s.ROOT_PATH + "/API/shortener",
7+
s.ROOT_PATH + "/api/shortener",
88
s.ensureUser(),
99
s.checkHeadersCodeInjection,
1010
s.setContentType,

API/Backend/Stac/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ let setup = {
44
//Once the app initializes
55
onceInit: (s) => {
66
s.app.use(
7-
s.ROOT_PATH + "/API/stac",
7+
s.ROOT_PATH + "/api/stac",
88
s.ensureAdmin(),
99
s.checkHeadersCodeInjection,
1010
s.setContentType,

API/Backend/Users/setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const router = require("./routes/users");
33
let setup = {
44
//Once the app initializes
55
onceInit: (s) => {
6-
s.app.use(s.ROOT_PATH + "/API/users", s.checkHeadersCodeInjection, router);
6+
s.app.use(s.ROOT_PATH + "/api/users", s.checkHeadersCodeInjection, router);
77
},
88
//Once the server starts
99
onceStarted: (s) => {},

0 commit comments

Comments
 (0)