|
3 | 3 | The API Explorer extension can be manually installed and run with a Looker instance using the following steps: |
4 | 4 |
|
5 | 5 | 1. create a new LookML project called `apix` |
6 | | -2. create a new model. In `apix.model`, put: |
| 6 | +1. create a new model. In `apix.model`, put: |
7 | 7 | ```lookml |
8 | 8 | connection: "<any valid connection name>" |
9 | 9 | ``` |
10 | | -3. in `manifest.lkml` put: |
11 | | - ```lookml |
12 | | - project_name: "api-explorer" |
13 | | - application: api-explorer { |
14 | | - label: "API Explorer" |
15 | | - # file: "bundle.js" |
16 | | - url: "https://localhost:8080/dist/bundle.js" |
17 | | - entitlements: { |
18 | | - local_storage: yes |
19 | | - navigation: no |
20 | | - new_window: yes |
21 | | - new_window_external_urls: ["https://looker.com/*", "https://developer.mozilla.org/*", "https://docs.looker.com/*"] |
22 | | - raw_api_request: yes |
23 | | - use_form_submit: yes |
24 | | - use_embeds: yes |
25 | | - use_clipboard: yes |
26 | | - core_api_methods: ["versions", "api_spec"] |
27 | | - external_api_urls : ["https://raw.githubusercontent.com","http://localhost:30000","https://localhost:8080","https://static-a.cdn.looker.app","https://docs.looker.com","https://developer.mozilla.org/"] |
28 | | - oauth2_urls: [] |
29 | | - } |
30 | | - } |
31 | | - ``` |
32 | | - the `http://localhost:30000` is for when you want to use the [API Explorer file server](/apix-files/README.md) |
33 | | -4. save all changes and deploy to production |
34 | | -5. in the root of `sdk-codegen`: |
| 10 | +1. Use the contents of the linked [`manifest.lkml`](manifest.lkml) as the project's `manifest.lkml`. The `http://localhost:30000` url is for the optional [API Explorer file server](/apix-files/README.md) |
| 11 | +1. save all changes and deploy to production |
| 12 | +1. in the root of `sdk-codegen`: |
35 | 13 | ```sh |
36 | 14 | yarn && yarn build && yarn dev:xapix |
37 | 15 | ``` |
38 | | -6. on the Looker web page, click `Browse|API Explorer` to view the API Explorer |
| 16 | +1. on the Looker web page, click `Browse|API Explorer` to view the API Explorer |
0 commit comments