Skip to content

Instantly share code, notes, and snippets.

@jmglov
Created May 3, 2019 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmglov/b7e656d9eced98cd8e31bbde4122efb1 to your computer and use it in GitHub Desktop.
Save jmglov/b7e656d9eced98cd8e31bbde4122efb1 to your computer and use it in GitHub Desktop.
openapi: "3.0.0"
info:
version: "0.1"
title: clj-prod-YOURNAME
description: Checkout reporting API
paths:
/events:
put:
summary: Publish new events
requestBody:
content:
application/json:
schema:
'$ref': '#/components/schemas/PutEvents'
responses:
'202':
description: Events accepted for aggregation
x-amazon-apigateway-integration:
type: aws_proxy
httpMethod: POST
uri: arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:AWSACCOUNT:function:clj-prod-YOURNAME-events/invocations
credentials: arn:aws:iam::AWSACCOUNT:role/clj.prod
x-amazon-apigateway-request-validators:
all:
validateRequestBody: true
validateRequestParameters: true
x-amazon-apigateway-request-validator: all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment