Added another example for explorer Advanced Usage

This commit is contained in:
Pratheek Hegde 2016-10-23 14:23:43 +05:30 committed by Simon Ho
parent 7f6c09d503
commit a79dce2136
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