-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidate.http
118 lines (81 loc) · 2.08 KB
/
validate.http
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
##########
### AI ###
##########
### Get AI title suggestions
POST http://localhost:7071/api/ai-title HTTP/1.1
content-type: application/json
{
"token": "<github token>",
"title": "How to get started?",
"nrOfCharacters": 60
}
### Get AI description suggestions
POST http://localhost:7071/api/ai/description HTTP/1.1
{
"token": "<github token>",
"title": "How to get started?",
"content": "This is a test content",
"nrOfCharacters": 160
}
### Get AI taxonomy suggestions
POST http://localhost:7071/api/ai/taxonomy HTTP/1.1
{
"token": "<github token>",
"title": "How to get started?",
"description": "Learn how to get started and succeed with our helpful tips and advice. Discover the best ways to begin your journey towards success.",
"taxonomy": ["getting-started", "tips", "advice"],
"type": "tags"
}
### Get AI taxonomy suggestions
POST http://localhost:7071/api/ai/title HTTP/1.1
{
"token": "<github token>",
"title": "How to get started?",
"nrOfCharacters": 60
}
#############
### Stars ###
#############
### Get stars
GET http://localhost:7071/api/stars HTTP/1.1
##################
### Supporters ###
##################
### Check if user is a supporter
GET http://localhost:7071/api/backers?backer=estruyf HTTP/1.1
### Check by using the token
POST http://localhost:7071/api/v2/backers HTTP/1.1
content-type: application/json
{
"token": "<github token>"
}
### Get sponsors
GET http://localhost:7071/api/sponsors HTTP/1.1
### Get sponsors image
GET http://localhost:7071/api/img-sponsors HTTP/1.1
########################
### Mendable Chatbot ###
########################
### Init
GET http://localhost:7071/api/ai-init HTTP/1.1
### Chat
POST http://localhost:7071/api/ai-chat HTTP/1.1
content-type: application/json
{
"chatId": "2436209",
"question": "How to get started?"
}
### Feedback
POST http://localhost:7071/api/ai-feedback HTTP/1.1
content-type: application/json
{
"answerId": "4527447",
"vote": 1
}
### AI Title
POST http://localhost:7071/api/ai-feedback HTTP/1.1
content-type: application/json
{
"answerId": "4527447",
"vote": 1
}