-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhashtag-tracker-openapi.yaml
56 lines (54 loc) · 1.56 KB
/
hashtag-tracker-openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
openapi: 3.0.3
info:
description: Twitter hashtag analytics web service
version: "0.1"
title: Twitter Hashtag Tracker
contact:
email: k.hasan.rajib@gmail.cloud
x-amazon-apigateway-request-validators:
basic:
validateRequestBody: true
validateRequestParameters: true
params-only:
validateRequestBody: false
validateRequestParameters: true
x-amazon-apigateway-minimum-compression-size: 1024
paths:
/tweets:
get:
tags:
- analytics
summary: find list of tweets by hashtag
operationId: listTweetsByHashtag
parameters:
- in: query
name: hashtag
schema:
type: string
description: target hashtag
required: True
- in: query
name: limit
schema:
type: integer
description: number of records to get
- in: query
name: sortby
schema:
type: string
enum: [RT_COUNT, FAV_COUNT]
description: sort tweets by retweet_count or favorite_count
responses:
'200':
description: successful operation
'400':
description: bad input parameter
x-amazon-apigateway-integration:
uri:
'Fn::Sub': >-
arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/${HashTagSimpleAnalyticFunction.Arn}/invocations
httpMethod: POST
passthroughBehavior: WHEN_NO_TEMPLATES
contentHandling: CONVERT_TO_TEXT
type: aws_proxy
x-amazon-apigateway-request-validator: basic