Skip to content

Commit 25d92ed

Browse files
committed
Return $metadata resource as odata + openapi spec
Returning odata and openapi specs in json format. Specs are scoped to the request permissions. Different users (roles) will receive different metadata endpoints and resources. Change-type: minor Signed-off-by: Harald Fischer <harald@balena.io>
1 parent 6130e72 commit 25d92ed

File tree

11 files changed

+630
-132
lines changed

11 files changed

+630
-132
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@
5858
"express-session": "^1.17.3",
5959
"lodash": "^4.17.21",
6060
"memoizee": "^0.4.15",
61+
"odata-openapi": "^0.24.2",
6162
"pinejs-client-core": "^6.14.0",
6263
"randomstring": "^1.3.0",
6364
"typed-error": "^3.2.2"
6465
},
6566
"devDependencies": {
6667
"@balena/lint": "^7.2.4",
6768
"@faker-js/faker": "^8.3.1",
69+
"@readme/openapi-parser": "^2.5.0",
6870
"@types/busboy": "^1.5.3",
6971
"@types/chai": "^4.3.11",
7072
"@types/chai-as-promised": "^7.1.8",

0 commit comments

Comments
 (0)