@wize/runtime-metadata
v1.0.15
Published
Provides information about the Models and APIs registered in the app.
Downloads
8
Readme
@wize/runtime-metadata
Description
Provides information about the Models and APIs registered in the app.
Usage
Installation
npm install --save @wize/runtime-metadata
Initialize
import wizeApis from '@wize/runtime-metadata';
.
.
.
/*
app: koa-app returned from 'const app = createServer({});'
dirname: current app directory containing pages folder
*/
new wizeApis(app, dirname);
APIs
- [GET] /api/app_resources - Lists all resources defined in current app
- [GET] /api/metadata/pages - Lists all UI pages and back-end modules
- [GET] /api/metadata/pages/:name - Fetch page detail
License
MIT License