Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Open API (Swagger) Viewer

{
  "swaggeropenapi": "23.0.1",
  "info": {
    "versiontitle": "2017-04-20T04:08:08ZRB2MessengerAPIDev",
    "titleversion": "LambdaCalc1.0"
  },
  "hostservers": "uojnr9hd57.execute-api.us-east-1.amazonaws.com"[
    {
      "url": "https://messengerapidev.replybuy.net"
    }
  ],
  "basePathpaths": {
    "/test"api/Conversation/GetCurrentConversation/{convoId}": {
      "get": {},
      "schemesoptions": [{
        "httpssummary": "CORS  ]support",
  "paths      "responses": {
    "/calc      "200": {
      "get      "description": {"Default response for CORS method",
    "consumes        "headers": [{
          "application/json"
    "Access-Control-Allow-Origin": {
       ],         "producesschema": [{
          "application/json"
        "type": "string"
       ]         }
              },
        "parameters      "Access-Control-Allow-Methods": [{
                "schema": {
            "name      "type": "operand2"string"
                }
              },
            "in  "Access-Control-Allow-Headers": "query",{
                "requiredschema": true,{
                  "type": "string"
                }
              }
            },
            "content": {}
          }
 "name": "operator"       }
      }
    },
    "/api/Messaging/LoadSmsConversationMoreMessages": {
      "post": {},
      "options": {
        "insummary": "queryCORS support",
        "responses": {
  "required": true        "200": {
            "description": "Default response for CORS method",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                },
          {    },
        "name      "Access-Control-Allow-Methods": "operand1",
{
                "schema": {
           "in       "type": "query"string"
                }
              },
            "required  "Access-Control-Allow-Headers": true,{
                "schema": {
                  "type": "string"
                }
        ]      }
            },
            "responsescontent": {}
          "200}
        }
      }
    },
    "/api/Conversation/MyActiveConvoList": {
      "get": {},
      "descriptionoptions": "200 response"{
        "summary": "CORS support",
        "responses": {
  "schema        "200": {
              "$refdescription": "#/definitions/Result"Default response for CORS method",
            },
"headers": {
           "headers   "Access-Control-Allow-Origin": {
                "operand_1schema": {
                  "type": "string"
                }
              },
              "operand_2Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                }
              },
              "operatorAccess-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {}
          }
        }
      }
    },
    "/api/Agent/ActiveAgents": {
  "x-amazon-apigateway-request-validator    "get": "Validate query string parameters and headers"{},
      "options": {
        "summary": "CORS support",
        "x-amazon-apigateway-integrationresponses": {
          "credentials200": "arn:aws:iam::123456789012:role/apigAwsProxyRole"{
            "description": "Default response for CORS method",
            "responsesheaders": {
            "default  "Access-Control-Allow-Origin": {
                "statusCodeschema": "200"{
                  "type": "string"
                }
              },
              "responseParametersAccess-Control-Allow-Methods": {
                "method.response.header.operatorschema": "integration.response.body.op",
{
                  "type": "string"
               "method.response.header.operand_2": "integration.response.body.b",
 }
              },
              "Access-Control-Allow-Headers": {
                "schema": {
               "method.response.header.operand_1   "type": "integration.response.body.astring"
                },
              "responseTemplates}
            },
            "content": {}
          }
     "application/json": "#set($res = $input.path('$'))\n{\n   }
      }
    },
    "/api/Conversation/GetMemberMessagesByDateRange": {
     \ "result\post": \"$res.a{},
$res.b, $res.op => $res.c\",\n  \"a\" : \"$res.a\",\n  \"b\" : \"$res.b\",\n  \"op\" : \"$res.op\",\n  \"c\" : \"$res.c\"\n}"
    "options": {
        "summary": "CORS support",
        "responses": {
          "200": {
            "description": "Default response for CORS method",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
             }     "type": "string"
                }
              },
          "uri": "arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations"    "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                }
              },
          "passthroughBehavior    "Access-Control-Allow-Headers": "when_no_match",
{
                "schema": {
         "httpMethod         "type": "POST"string"
                }
              }
            },
            "requestTemplatescontent": {}
          }
 "application/json": "{\n       }
      }
    },
    "/api/Conversation/ActiveConvoList": {
      "get": {},
   \"a\   "options":  \"$input.params('operand1')\",\n{
        "summary": "CORS support",
   \"b\     "responses":  \"$input.params('operand2')\", \n    \"op\": \"$input.params('operator')\"   \n}"
{
          "200": {
            "description": "Default response for CORS method",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "awsstring"
                }
              },
      "post        "Access-Control-Allow-Headers": {
        "consumes        "schema": [{
          "application/json"
        "type": "string"
       ]         }
              }
            },
            "producescontent": [{}
          "application/json"
}
        }
      }
    },
    "/api/Login/Login": {
       ]"post": {},
      "options": {
"parameters        "summary": ["CORS support",
        "responses": {
          "200": {
"in            "description": "bodyDefault response for CORS method",
            "nameheaders": "Input",{
            "required  "Access-Control-Allow-Origin": true,{
                "schema": {
                  "$reftype": "#/definitions/Inputstring"
                }
          }    },
    ],         "responses "Access-Control-Allow-Methods": {
          "200      "schema": {
            "description      "type": "200 response"string"
                }
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "$reftype": "#/definitions/Resultstring"
                }
              }
            },
            "x-amazon-apigateway-request-validator": "Validate body"content": {}
          }
        }
      }
    },
    "/api/x/x": {
      "post": {},
      "options": {
        "summary": "CORS support",
        "x-amazon-apigateway-integrationresponses": {
          "credentials200": "arn:aws:iam::123456789012:role/apigAwsProxyRole"{
            "description": "Default response for CORS method",
            "responsesheaders": {
            "default  "Access-Control-Allow-Origin": {
                "statusCodeschema": "200"{
                  "type": "string"
                }
              },
              "responseTemplatesAccess-Control-Allow-Methods": {
                "application/jsonschema": "#set($inputRoot{
= $input.path('$'))\n{\n  \"a\" : $inputRoot.a,\n  \"b\" : $inputRoot.b,\n  \"op\" : $inputRoot.op,\n  \"c\" : $inputRoot.c\n}"                 "type": "string"
                }
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "uricontent": "arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations"{}
          }
        }
      }
    },
    "/api/Conversation/CloseConversation": {
      "post": {},
      "options": {
        "summary": "CORS support",
        "responses": {
"passthroughBehavior          "200": "when_no_templates"{
            "description": "Default response for CORS method",
            "httpMethodheaders": "POST",
{
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "awsstring"
        }        }
              },
    "/calc/{operand1}/{operand2}/{operator}          "Access-Control-Allow-Methods": {
      "get          "schema": {
        "consumes          "type": ["string"
          "application/json"
      }
              },
              "Access-Control-Allow-Headers": {
       ],         "producesschema": [{
          "application/json"
        "type": "string"
       ]         }
              }
            },
            "parameterscontent": [{}
          {}
        }
   "name   }
    },
    "/api/Messaging/QueueOutgoingMessage": "operand2"{
      "post": {},
      "options": {
        "insummary": "pathCORS support",
        "responses": {
  "required        "200": true,{
            "typedescription": "string"Default response for CORS method",
          },  "headers": {
              "Access-Control-Allow-Origin": {
                "nameschema": "operator",{
            "in      "type": "path"string"
                }
              },
            "required  "Access-Control-Allow-Methods": true,{
                "schema": {
                  "type": "string"
                },
          {    },
        "name      "Access-Control-Allow-Headers": "operand1",
{
                "schema": {
           "in       "type": "path"string"
                }
              }
            },
            "requiredcontent": true,{}
          }
 "type": "string"
       }
      }
    },
    "/api/Agent/IsLoggedIn": {
      "get": {},
      "options": {
 }       "summary": "CORS ]support",
        "responses": {
          "200": {
            "description": "200Default response for CORS method",
            "schemaheaders": {
              "$refAccess-Control-Allow-Origin": "#/definitions/Result"
{
                "schema": {
           }       "type": "string"
                }
              },
        "x-amazon-apigateway-integration      "Access-Control-Allow-Methods": {
          "credentials      "schema": "arn:aws:iam::123456789012:role/apigAwsProxyRole"{
                  "type": "string"
                }
              },
          "responses    "Access-Control-Allow-Headers": {
                "defaultschema": {
                  "statusCodetype": "200string",
              "responseTemplates  }
              }
            },
            "content": {}
          }
     "application/json": "#set($inputRoot = $input.path('$'))\n{\n  \"input\" : {\n    \"a\" : $inputRoot.a,\n    \"b\" : $inputRoot.b,\n    \"op\" : \"$inputRoot.op\"\n  },\n  \"output\" : {\n    \"c\" : $inputRoot.c\n  }\n}"
   }
      }
    },
    "/api/Login/Logout": {
      "post": {},
      "options": {
        "summary": "CORS support",
        "responses": {
          "200": {
            "description": "Default response for CORS method",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "uricontent": "arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:123456789012:function:Calc/invocations"{}
          }
        }
      }
    },
    "/api/Authentication": {
      "post": {},
      "options": {
  "passthroughBehavior      "summary": "when_no_templatesCORS support",
        "responses": {
"httpMethod          "200": "POST"{
            "description": "Default response for CORS method",
            "requestTemplatesheaders": {
            "application/json  "Access-Control-Allow-Origin": "{\n
  \"a\": \"$input.params('operand1')\",\n   \"b\": \"$input.params('operand2')\",\n   \"op\": #if($input.params('operator')=='%2F')\"/\"#{else}\"$input.params('operator')\"#end\n   \n}"              "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                }
              },
          "contentHandling    "Access-Control-Allow-Headers": "CONVERT_TO_TEXT",
{
                "schema": {
                  "type": "awsstring"
                }
              }
            },
            "content": {}
          }
        }
      }
    },
  "definitions  "/api/Authentication/Refresh": {
      "Inputpost": {},
      "typeoptions": "object"{
        "summary": "CORS support",
        "requiredresponses": [{
          "a200",: {
            "b"description": "Default response for CORS method",
            "opheaders": {
     ],       "properties  "Access-Control-Allow-Origin": {
        "a        "schema": {
                  "type": "numberstring"
                }
              },
        "b      "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "numberstring"
                }
              },
        "op      "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "descriptioncontent": "binary{}
op of ['+', 'add', '-', 'sub', '*', 'mul', '%2F', 'div']" }
        }
      }
    },
    "/api/Messaging/SendSingleOutgoingMessage": {
"title      "post": "Input"
{},
      "options": {
   }     "summary": "CORS support",
        "Outputresponses": {
          "type200": "object"{
            "description": "Default response for CORS method",
      "properties      "headers": {
        "c      "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "numberstring"
                }
              },
      "title        "Access-Control-Allow-Methods": "Output"{
    },     "Result       "schema": {
                  "type": "object"string"
                }
              },
      "properties        "Access-Control-Allow-Headers": {
        "input        "schema": {
          "$ref        "type": "#/definitions/Inputstring"
                }
              }
            },
            "outputcontent": {}
          "$ref": "#/definitions/Output"
}
        }
      }
    },
    "/api/Conversation/TransferConversation": {
      "post": {},
      }"options": {
        "summary": "CORS support",
        "titleresponses": "Result"
{
          "200": {
   }   }      "description": "Default response for CORS method",
  "x-amazon-apigateway-request-validators          "headers": {
              "Access-Control-Allow-Origin": {
    "Validate body"            "schema": {
      "validateRequestParameters": false            "type": "string"
                }
              },
      "validateRequestBody        "Access-Control-Allow-Methods": true{
                "schema": {
                  "type": "string"
                }
              },
    "Validate query string parameters and headers"          "Access-Control-Allow-Headers": {
                "schema": {
      "validateRequestParameters": true            "type": "string"
                }
              }
            },
      "validateRequestBody      "content": false{}
          }
        }
      }
    }
  },
  "components": {}
}