├── .gitignore ├── .idea └── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── bundle.js ├── extension-api-explorer.model.lkml ├── manifest.lkml └── marketplace.json /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/** -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | /.idea -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to Contribute 2 | 3 | We'd love to accept your patches and contributions to this project. There are 4 | just a few small guidelines you need to follow. 5 | 6 | ## Contributor License Agreement 7 | 8 | Contributions to this project must be accompanied by a Contributor License 9 | Agreement (CLA). You (or your employer) retain the copyright to your 10 | contribution; this simply gives us permission to use and redistribute your 11 | contributions as part of the project. Head over to 12 | to see your current agreements on file or 13 | to sign a new one. 14 | 15 | You generally only need to submit a CLA once, so if you've already submitted one 16 | (even if it was for a different project), you probably don't need to do it 17 | again. 18 | 19 | ## Code Reviews 20 | 21 | All submissions, including submissions by project members, require review. We 22 | use GitHub pull requests for this purpose. Consult 23 | [GitHub Help](https://help.github.com/articles/about-pull-requests/) for more 24 | information on using pull requests. 25 | 26 | ## Community Guidelines 27 | 28 | This project follows 29 | [Google's Open Source Community Guidelines](https://opensource.google/conduct/). 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Looker Open Source 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /extension-api-explorer.model.lkml: -------------------------------------------------------------------------------- 1 | connection: "@{CONNECTION_NAME}" 2 | -------------------------------------------------------------------------------- /manifest.lkml: -------------------------------------------------------------------------------- 1 | project_name: "api-explorer" 2 | 3 | application: api-explorer { 4 | label: "API Explorer" 5 | file: "bundle.js" 6 | # url: "https://localhost:8080/dist/bundle.js" 7 | entitlements: { 8 | local_storage: yes 9 | navigation: no 10 | new_window: yes 11 | new_window_external_urls: ["https://looker.com/*", "https://developer.mozilla.org/*", "https://docs.looker.com/*", "https://cloud.google.com/*"] 12 | raw_api_request: yes 13 | use_form_submit: yes 14 | use_embeds: yes 15 | use_clipboard: yes 16 | core_api_methods: ["versions", "api_spec"] 17 | external_api_urls : ["https://raw.githubusercontent.com","http://localhost:30000","https://localhost:8080","https://static-a.cdn.looker.app","https://docs.looker.com","https://cloud.google.com", "https://developer.mozilla.org/"] 18 | oauth2_urls: [] 19 | } 20 | } 21 | 22 | constant: CONNECTION_NAME { 23 | value: "" 24 | export: override_optional 25 | } 26 | -------------------------------------------------------------------------------- /marketplace.json: -------------------------------------------------------------------------------- 1 | { 2 | "label": "API Explorer", 3 | "category_label": "Applications", 4 | "branding": { 5 | "image_uri": "https://marketplace-api.looker.com/app-icons/icon_api_explorer.svg", 6 | "tagline": "Interactively explore API calls to help you build with Looker", 7 | "brand_color": "#24B25F" 8 | }, 9 | "constants": { 10 | "CONNECTION_NAME": { 11 | "label": "Connection Name", 12 | "value_constraint": "connection" 13 | } 14 | }, 15 | "models": [ 16 | { 17 | "name": "extension-api-explorer", 18 | "connection_constant": "CONNECTION_NAME" 19 | } 20 | ] 21 | } 22 | --------------------------------------------------------------------------------