Web server for documentation generated based on metadata from angular2 apps with ng2-rest v4.x plugin. In your app you should enable it and restart server by setting in app.component or somewhere where your app begin:
Resource.setUrlToDocsServerAndRecreateIt('http://localhost:3333');
When you are using your app and making requests from ng2-rest lib, you will be saving every request with his metadata to hard drive by instance of ng2-rest-docs-server which will generate nice docs , with descriptions of requests, use cases, like this :
Instalation on your server:
npm install ng2-rest-docs-server -g
Usage ( in folder where you wanna put your docs from ng2-rest )
simple way (docs server is working on default port 3333 ):
ng2-rest-docs-server
or with parameters:
ng2-rest-docs-server -p 3555 -b http://localhost:3333
param | description |
---|---|
-p | port for docs web server |
-b | base url for app witn ng2-rest v4.x |