Merge pull request #192 from strongloop/pratheekhegde-master

Added another example for explorer Advanced Usage
This commit is contained in:
Simon Ho 2016-11-25 14:43:47 -08:00 committed by GitHub
commit 2bcce529e5
1 changed files with 17 additions and 0 deletions

View File

@ -77,6 +77,23 @@ explorer(app, {
}));
app.use('/custom-api-root', loopback.rest());
```
In applications scaffolded by `slc loopback`, you can edit the `server/component-config.json`:
```json
{
"loopback-component-explorer": {
"mountPath": "/explorer",
"apiInfo": {
"title": "My App",
"description": "Description of my app APIs.",
"termsOfServiceUrl": "http://api.mycompany.io/terms/",
"contact": "apiteam@mycompany.io",
"license": "Apache 2.0",
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html"
}
}
}
```
## Options