loopback-component-ping
Component for LoopBack that adds a model for retrieving the internal state of the Node process.
It is a wrapper around the express-ping package.
Installation
Install the module
$ npm install --save loopback-component-ping
Configure the module in server/component-config.json
The configuration object accepts the following parameters:
acls
(array) (optional) allows you to specify LoopBack ACL definitions that will be applied to the Ping model. (Default: no ACL)modelName
(string) (optional) allows to specify the name of the API endpoint that's used. (Default: 'Ping'),parts
(object) (optional) allows you to filter out parts of the output by setting the value to false. (Default: show all parts)
Usage
After installation you should be able to retrieve data about the Node process through the new endpoint on your API: