language-detection-and-translation/api/skeleton-api.yaml [113:163]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        requestTemplates:
          application/json:
            Fn::Sub: |-
              {
                "executionArn": "$input.params('id')"
              }
        responses:
          default:
            statusCode: "200"
            responseParameters:
              method.response.header.Access-Control-Allow-Origin: '''*'''
            responseTemplates:
              application/json: |-
                #set($inputRoot = $input.path('$'))
                {
                  "workflow": {
                #set($stopDate = $inputRoot.stopDate)
                #set($status = $inputRoot.status)
                #set($output = $util.parseJson($inputRoot.output))
                    "status": "$status",
                    "executionArn": "$inputRoot.executionArn",
                    "startDate": "$inputRoot.startDate"#if($stopDate && $stopDate != 0),
                    "stopDate": "$stopDate"#end#if($status && $status == 'SUCCEEDED'),
                    "workflowDetails": {
                      "sourceText": "$output.source.text",
                      "sourceLanguageCode": "$output.source.languageCode",
                      "targetText": "$output.target.text",
                      "targetLanguageCode": "$output.target.languageCode"
                    }
                #end
                  }
                }

    delete:
      responses:
        "200":
          description: "200 response"
          headers:
            Access-Control-Allow-Origin:
              type: "string"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Empty"
      x-amazon-apigateway-integration:
        type: "aws"
        uri: {"Fn::Sub": "arn:${AWS::Partition}:apigateway:${AWS::Region}:states:action/StopExecution"}
        httpMethod: "POST"
        passthroughBehavior: "when_no_templates"
        timeoutInMillis: 10000
        credentials:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



language-detection-and-translation/api/solution-api.yaml [163:213]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        requestTemplates:
          application/json:
            Fn::Sub: |-
              {
                "executionArn": "$input.params('id')"
              }
        responses:
          default:
            statusCode: "200"
            responseParameters:
              method.response.header.Access-Control-Allow-Origin: '''*'''
            responseTemplates:
              application/json: |-
                #set($inputRoot = $input.path('$'))
                {
                  "workflow": {
                #set($stopDate = $inputRoot.stopDate)
                #set($status = $inputRoot.status)
                #set($output = $util.parseJson($inputRoot.output))
                    "status": "$status",
                    "executionArn": "$inputRoot.executionArn",
                    "startDate": "$inputRoot.startDate"#if($stopDate && $stopDate != 0),
                    "stopDate": "$stopDate"#end#if($status && $status == 'SUCCEEDED'),
                    "workflowDetails": {
                      "sourceText": "$output.source.text",
                      "sourceLanguageCode": "$output.source.languageCode",
                      "targetText": "$output.target.text",
                      "targetLanguageCode": "$output.target.languageCode"
                    }
                #end
                  }
                }

    delete:
      responses:
        "200":
          description: "200 response"
          headers:
            Access-Control-Allow-Origin:
              type: "string"
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Empty"
      x-amazon-apigateway-integration:
        type: "aws"
        uri: {"Fn::Sub": "arn:${AWS::Partition}:apigateway:${AWS::Region}:states:action/StopExecution"}
        httpMethod: "POST"
        passthroughBehavior: "when_no_templates"
        timeoutInMillis: 10000
        credentials:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



