@wize/runtime-metadata

1.0.15 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @wize/runtime-metadata

Weekly Downloads

0

Version

1.0.15

License

MIT

Unpacked Size

27.9 kB

Total Files

20

Last publish

Collaborators

  • praveennegi
  • at1nder
  • harishtejwani