-
Notifications
You must be signed in to change notification settings - Fork 2
/
swagger.yaml
executable file
·63 lines (63 loc) · 2.54 KB
/
swagger.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
57
58
59
60
61
62
63
---
swagger: "2.0"
info:
description: This API starts the process of regularly crawling, processing, classifying and storing Tweets. This microservice depends on the microservices ri-storage-twitter, ri-collection-explicit-feedback-twitter, and ri-analytics-classification-twitter
version: 1.0
title: Orchestrate Tweet microservices
contact:
email: [email protected]
schemes:
- https
paths:
/hitec/orchestration/twitter/observe/tweet/account/{account_name}/interval/{interval}/lang/{lang}:
post:
summary: Starts the process of regularly crawling, processing, classifying and storing Tweets.
description: Stores the account as under observation in the ri-storage-twitter MS, then initiates a CRON job according to the interval for frequent crawling. This MS then gets tweets from ri-collection-explicit-feedback-twitter and classifies them in ri-analytics-classification-twitter. The classified tweets will be stored in ri-storage-twitter.
operationId: postObserveTweets
produces:
- application/json
parameters:
- name: account_name
in: path
description: the unique account name of a twitter profile.
required: true
type: string
- name: interval
in: path
description: how often data should be crawled
required: true
type: string
format: integer
- name: lang
in: path
description: the language the tweet was oficially labeled with
required: true
type: string
responses:
200:
description: The described process was initiated correctly.
400:
description: bad input parameter or any microservice is not responding.
/hitec/orchestration/twitter/process/tweet/account/{account_name}/lang/{lang}:
post:
summary: Crawl, classify, and store tweets.
description: Crawl, classify, and store tweets. This is a one-shot endpoint that does not support frequent crawling.
operationId: postProcessTweets
produces:
- application/json
parameters:
- name: account_name
in: path
description: the unique account name of a twitter profile.
required: true
type: string
- name: lang
in: path
description: the language the tweet was oficially labeled with
required: true
type: string
responses:
200:
description: The described process was successfull.
400:
description: bad input parameter or any microservice is not responding.