Advertisement
Guest User

Untitled

a guest
Apr 24th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. ---
  2. swagger: "2.0"
  3. info:
  4. version: "2018-03-21T15:53:05Z"
  5. basePath: "/v1"
  6. schemes:
  7. - "https"
  8. paths:
  9. /customer:
  10. post:
  11. produces:
  12. - "application/json"
  13. responses:
  14. 200:
  15. description: "200 response"
  16. schema:
  17. $ref: "#/definitions/Empty"
  18. headers:
  19. Access-Control-Allow-Origin:
  20. type: "string"
  21. Access-Control-Allow-Methods:
  22. type: "string"
  23. Access-Control-Allow-Headers:
  24. type: "string"
  25. x-amazon-apigateway-integration:
  26. uri: "arn:aws:apigateway:REGION:lambda:path/2015-03-31/functions/arn:aws:lambda:REGION:ACCOUNT:function:${stageVariables.LambdaFunctionName}/invocations"
  27. responses:
  28. default:
  29. statusCode: "200"
  30. responseParameters:
  31. method.response.header.Access-Control-Allow-Methods: "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'"
  32. method.response.header.Access-Control-Allow-Headers: "'Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token'"
  33. method.response.header.Access-Control-Allow-Origin: "'*'"
  34. passthroughBehavior: "when_no_match"
  35. httpMethod: "POST"
  36. contentHandling: "CONVERT_TO_TEXT"
  37. type: "aws_proxy"
  38. options:
  39. consumes:
  40. - "application/json"
  41. produces:
  42. - "application/json"
  43. responses:
  44. 200:
  45. description: "200 response"
  46. schema:
  47. $ref: "#/definitions/Empty"
  48. headers:
  49. Access-Control-Allow-Origin:
  50. type: "string"
  51. Access-Control-Allow-Methods:
  52. type: "string"
  53. Access-Control-Allow-Headers:
  54. type: "string"
  55. x-amazon-apigateway-integration:
  56. responses:
  57. default:
  58. statusCode: "200"
  59. responseParameters:
  60. method.response.header.Access-Control-Allow-Methods: "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'"
  61. method.response.header.Access-Control-Allow-Headers: "'Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token'"
  62. method.response.header.Access-Control-Allow-Origin: "'*'"
  63. passthroughBehavior: "when_no_match"
  64. requestTemplates:
  65. application/json: "{\"statusCode\": 200}"
  66. type: "mock"
  67. definitions:
  68. Empty:
  69. type: "object"
  70. title: "Empty Schema"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement