Skip to content

v1.1.0

Choose a tag to compare

@valtsi valtsi released this 30 Oct 16:23
· 29 commits to main since this release
b36a5e0

App platform enhancements and changes

  • Added a rawResponse field to config.json . When this is set, no processing will be done to the response from the external system for this request, it is instead passed as-is to the response_transformation.gtpl. In this case, the rawData template attribute will be raw byte array from the response. This provides additional flexibility for handling the diverse responses an API might return. However, the developer is now responsible for managing all the possible states, HTTP codes, and response parsing for this request.
  • Added the fromXml and mustFromXml template functions; this will allow for processing "raw" XML responses in the "response_transformation.gtpl" template and provide parity when not processing raw response data.

CLI Improvements

  • Added a new subcommand, apps , to be used for managing your App Platform applications and configurations. See the --help option for exact usage.
    • appcfg apps install
      • Allows you to install your App Platform application zip files into your Gladly environment
    • appcfg apps create-config
      • Allows you to create configurations for your applications, which will serve and execute app platform requests, pulling data and performing actions in an external system
    • appcfg apps update-config
      • Allows you to update a configuration with a new name or any other configuration details, such as changing API keys
    • appcfg apps list
      • Shows information on what applications and configurations are in your Gladly environment
    • appcfg apps info
      • Shows detailed information about an application, including associated configurations and their settings
    • appcfg apps upgrade
      • Allows you to upgrade configurations to newer versions to incorporate new changes or fixes of an updated application
    • appcfg apps oauth
      • Allows you to authorize your application that uses the OAuth authorization_code grant
  • Added new environment variables and flags for authenticating into Gladly, which is necessary for the apps set of commands
    • --gladly, -g, GLADLY_APP_CFG_HOST : The Gladly environment for which to run against
    • --user, -u, GLADLY_APP_CFG_USER : The user email of the created API token
    • --token, -t, GLADLY_APP_CFG_TOKEN : The API token associated with the user email

CLI Fixes

  • appcfg add auth-header will no longer generate a inputs.json test file, since auth headers do not have access to inputs
  • For actions, when the HTTP status code is greater than 300 and the response Content-Type is not one of the supported content types, continue instead of failing. This is to account for APIs that do not set the Content-Type correctly, even when the response is JSON. Developers can parse this value in the template to process the response, using something like: {{$responseData := fromJson .response.body }}