davidhampgonsalves/webhook-transmogrifier

View on GitHub
functions/liaison/s-templates.json

Summary

Maintainability
Test Coverage
{
  "requestTemplate": {
    "application/json": {
      "contentType": "$input.params().header.get('Content-Type')",
      "method": "$context.httpMethod",
      "json" : "$input.json('$')",
      "configName" : "$input.params().path.get('config')"
    },
    "application/x-www-form-urlencoded": {
      "contentType": "$input.params().header.get('Content-Type')",
      "method": "$context.httpMethod",
      "body" : "$input.body",
      "json" : "$input.json('$')",
      "configName" : "$input.params().path.get('config')"
    }
  }
}