openapi: "3.0.1"
info:
  title: "HAL OpenAPI"
  description: "# The HAL API services provides the following features\n- Gets organization\
    \ account information\n- Gets payer and unit information per acccount\n### Release\
    \ Notes\nv1.0.0\n- Initial API doc release\n"
  version: "1.0.0"
servers:
- url: "https://api-dev.pearsoncloudmanagement.com/{basePath}"
  variables:
    basePath:
      default: "/hal"
paths:
  /payeraccountorgdetails:
    get:
      x-amazon-apigateway-integration:
        httpMethod: "POST"
        uri: "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:530786275774:function:HalApiDevStack-HalLambdaApi3B7E1770-dRwTT1OeQSp4/invocations"
        passthroughBehavior: "when_no_match"
        type: "aws_proxy"
  /accountsandorgdata:
    get:
      x-amazon-apigateway-integration:
        httpMethod: "POST"
        uri: "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:530786275774:function:HalApiDevStack-HalLambdaApi3B7E1770-dRwTT1OeQSp4/invocations"
        passthroughBehavior: "when_no_match"
        type: "aws_proxy"
  /accountsandorgdatatest:
    get:
      x-amazon-apigateway-integration:
        httpMethod: "POST"
        uri: "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:530786275774:function:HalApiDevStack-HalLambdaApi3B7E1770-dRwTT1OeQSp4/invocations"
        passthroughBehavior: "when_no_match"
        type: "aws_proxy"
  /payeraccountorgdetailstest:
    get:
      x-amazon-apigateway-integration:
        httpMethod: "POST"
        uri: "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:530786275774:function:HalApiDevStack-HalLambdaApi3B7E1770-dRwTT1OeQSp4/invocations"
        passthroughBehavior: "when_no_match"
        type: "aws_proxy"
  /:
    get:
      operationId: "APILandingPage"
      responses:
        "404":
          description: "404 response"
          headers:
            Access-Control-Allow-Origin:
              schema:
                type: "string"
            Access-Control-Allow-Methods:
              schema:
                type: "string"
            Access-Control-Allow-Headers:
              schema:
                type: "string"
            Content-Type:
              schema:
                type: "string"
          content: {}
        "200":
          description: "200 response"
          headers:
            Access-Control-Allow-Origin:
              schema:
                type: "string"
            Access-Control-Allow-Methods:
              schema:
                type: "string"
            Access-Control-Allow-Headers:
              schema:
                type: "string"
            Content-Type:
              schema:
                type: "string"
          content: {}
      x-amazon-apigateway-integration:
        responses:
          default:
            statusCode: "200"
            responseParameters:
              method.response.header.Access-Control-Allow-Methods: "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'"
              method.response.header.Content-Type: "'text/html'"
              method.response.header.Access-Control-Allow-Headers: "'Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token,Api-Auth-Token'"
              method.response.header.Access-Control-Allow-Origin: "'http://localhost:3000'"
            responseTemplates:
              text/html: "<!DOCTYPE html> <html lang=\"en\">\n  <head>\n    <meta\
                \ charset=\"utf-8\"> <!-- Important: rapi-doc uses utf8 charecters\
                \ -->\n    <script type=\"module\" src=\"https://unpkg.com/rapidoc/dist/rapidoc-min.js\"\
                ></script>\n  </head>\n  <body>\n    <!-- Swagger build propagates\
                \ info.version. Change the version in openapi.yaml, not here. v0.0.0\
                \ is a placeholder. -->\n    <rapi-doc spec-url = \"https://downloads.pearsoncloudmanagement.com/hal/$context.stage/api/openapi_bundled__v1.0.0.yaml\"\
                > </rapi-doc>\n  </body>\n</html>\n"
        requestTemplates:
          application/json: "{\"statusCode\": 200}"
        passthroughBehavior: "when_no_match"
        type: "mock"
    options:
      responses:
        "204":
          description: "204 response"
          headers:
            Access-Control-Allow-Origin:
              schema:
                type: "string"
            Access-Control-Allow-Methods:
              schema:
                type: "string"
            Vary:
              schema:
                type: "string"
            Access-Control-Allow-Headers:
              schema:
                type: "string"
          content: {}
      x-amazon-apigateway-integration:
        responses:
          default:
            statusCode: "204"
            responseParameters:
              method.response.header.Access-Control-Allow-Methods: "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'"
              method.response.header.Access-Control-Allow-Headers: "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'"
              method.response.header.Access-Control-Allow-Origin: "'http://localhost:3000'"
              method.response.header.Vary: "'Origin'"
            responseTemplates:
              application/json: "#set($origin = $input.params().header.get(\"Origin\"\
                ))\n#if($origin == \"\") #set($origin = $input.params().header.get(\"\
                origin\")) #end\n#if($origin.matches(\"https://hal-dev.pearsoncloudmanagement.com\"\
                ) || $origin.matches(\"https://hal.pearsoncloudmanagement.com\"))\n\
                \  #set($context.responseOverride.header.Access-Control-Allow-Origin\
                \ = $origin)\n#end"
        requestTemplates:
          application/json: "{ statusCode: 200 }"
        passthroughBehavior: "when_no_match"
        type: "mock"
components: {}
