api-swagger-template.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "version": "1.0.0",
  5. "title": "%ApiTitle%"
  6. },
  7. "basePath": "/",
  8. "schemes": ["https"],
  9. "consumes": ["application/json"],
  10. "produces": ["application/json"],
  11. "paths": {
  12. "/": {
  13. "x-amazon-apigateway-any-method": {
  14. "x-amazon-apigateway-integration": {
  15. "uri": "arn:aws:apigateway:%Region%:lambda:path/2015-03-31/functions/arn:aws:lambda:%Region%:%AccountId%:function:${stageVariables.ExpressFunction}/invocations",
  16. "passthroughBehavior": "when_no_match",
  17. "httpMethod": "POST",
  18. "type": "aws_proxy"
  19. }
  20. }
  21. },
  22. "/{proxy+}": {
  23. "x-amazon-apigateway-any-method": {
  24. "parameters": [
  25. {
  26. "name": "proxy",
  27. "in": "path",
  28. "required": true,
  29. "type": "string"
  30. }
  31. ],
  32. "x-amazon-apigateway-integration": {
  33. "uri": "arn:aws:apigateway:%Region%:lambda:path/2015-03-31/functions/arn:aws:lambda:%Region%:%AccountId%:function:${stageVariables.ExpressFunction}/invocations",
  34. "httpMethod": "POST",
  35. "type": "aws_proxy"
  36. }
  37. }
  38. }
  39. },
  40. "x-amazon-apigateway-binary-media-types": ["*/*"]
  41. }