-
Notifications
You must be signed in to change notification settings - Fork 0
/
Swagger.yaml
47 lines (45 loc) · 1.17 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
openapi: 3.0.1
info:
title: People's Thoughts
version: 1.0.0
contact:
name: Jonathan
email: [email protected]
description: |
Summarize and Classify Sentiment of tweets using HuggingFace pretrained bart and distilroberta models.
---
How to use:
* Enter a search phrase.
---
servers:
- url: https://main-common-computer-backend-jonathanlampkin.endpoint.ainize.ai
paths:
post:
requestBody:
required: true
description: |
This request will generate a summary and sentiment of the tweets related to the search phrase.
curl example
content:
multipart/form-data:
schema:
type: object
properties:
base_text:
type: string
description: "Search Phrase for Twitter"
required:
- text
responses:
'200':
description: "Successful Response"
content:
application/json:
schema:
type: object
'400':
description: "Bad Request Error"
'429':
description: "Too many requests"
'500':
description: "Server-side Error"