0.9.30 • Published 11 months ago
arbuscular v0.9.30
Architecture
Setup
Create arbuscular.yaml at the top level of your Node.js project and write the following.
port: 3000
interfaces:
- contextPath: "example"
interface: "./open-api.yaml"
route: "./route.yaml"
authentication:
module: "./authentication.js"
function: "authenticate"
authorization:
module: "./authorization.js"
function: "authorize"open-api.yamlis the OpenAPI definition file in your Node.js project.- At least OAuth2 clientCredentials must be defined in
components.securitySchemes.
- At least OAuth2 clientCredentials must be defined in
route.yamlassociates the request URL with the JS module in your Node.js project.authentication.jsis the OAuth authentication (client credentials grant) implementation in your Node.js project.authenticateis a function ofauthentication.jsand is the logic that performs authentication.authorization.jsis the OAuth authorization implementation in your Node.js project.authorizeis a function ofauthorization.jsand is the logic that performs authorization.
route.yaml is defined as follows.
/users:
GET:
module: ./logic/users.js
function: getUsers
POST:
module: ./logic/users.js
function: addUserFinally, npm install arbuscular in your Node.js project and npx arbuscular will start the API server on the specified port.
License
Developers
© Takuro Okada
0.9.30
11 months ago
0.9.29
1 year ago
0.9.28
1 year ago
0.9.26
1 year ago
0.9.27
1 year ago
0.9.25
1 year ago
0.9.23
1 year ago
0.9.24
1 year ago
0.9.22
1 year ago
0.9.21
1 year ago
0.9.20
1 year ago
0.9.17
1 year ago
0.9.18
1 year ago
0.9.19
1 year ago
0.9.13
2 years ago
0.9.14
2 years ago
0.9.15
2 years ago
0.9.16
2 years ago
0.9.12
2 years ago
0.9.8
2 years ago
0.9.7
2 years ago
0.9.9
2 years ago
0.9.10
2 years ago
0.9.6
2 years ago
0.9.11
2 years ago
0.9.5
2 years ago
0.9.4
2 years ago
0.9.3
2 years ago
0.9.2
2 years ago