7
support for command line environment variables
Source: Kong/insomnia#4377 · opened by @SachinGhumbre
We use inso generate command to generate kong configuration from openapi specifications. To achieve multiple environment deployments using the same openapi yaml file, there is a need to have environment variables to be passed at command line. Example given below: my-orders.yaml openapi: 3.0.0 tags: • name: "orders.yml" info: title: "OrdersAPI" service name in kong version: "1.0" servers: - url: full path for backend (service) variables: HOSTNAME: default: localhost:8443 enum: - "QA-SERVER:8443" - "PROD-SERVER:8443" When I run "inso generate config orders.yml --type declarative > kong.yaml", it will generate corresponding kong configuration file for orders API as mentioned below: _format_version: "1.1" services: - name: OrdersAPI protocol: https host: localhost port: 8443 path: /api/v1.0/orders …
No pledges yet. Be the first to back this.
Comments
Similar requests
Allow Environment variables as command line params to inso cli
7 votes · 0 comments
Redesign the environment variables
1 vote · 0 comments
Collection Specific Environment Variables Superseding Active Environment Variables
2 votes · 0 comments
JSONPath/XPath access to Environment Variables
1 vote · 0 comments
New shortcut for Base Environment and/or mask Private environment variables on dialog open
2 votes · 0 comments
No comments yet.