Skip to content

Commit ffadb18

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> Signed-off-by: fisehara <harald@balena.io>
1 parent 28840cb commit ffadb18

File tree

10 files changed

+1404
-134
lines changed

10 files changed

+1404
-134
lines changed

example-openapi.json

Lines changed: 921 additions & 0 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"express-session": "^1.17.3",
6262
"lodash": "^4.17.21",
6363
"memoizee": "^0.4.15",
64+
"odata-openapi": "^0.18.1",
6465
"pinejs-client-core": "^6.10.2",
6566
"randomstring": "^1.2.2",
6667
"typed-error": "^3.2.1"

0 commit comments

Comments
 (0)