From a79dce2136ae608cbaf20c7243e57081008ca260 Mon Sep 17 00:00:00 2001 From: Pratheek Hegde Date: Sun, 23 Oct 2016 14:23:43 +0530 Subject: [PATCH] Added another example for explorer Advanced Usage --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 50a7534..ca167bd 100644 --- a/README.md +++ b/README.md @@ -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