-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSuggestions.yaml
60 lines (59 loc) · 1.84 KB
/
Suggestions.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
openapi: 3.0.3
info:
title: Suggestions API's
description: Following api's will be called from the sales sparrow application
version: '1.0'
servers:
- url: https://sales.truesparrow.com/api
paths:
/v1/suggestions/crm-actions:
post:
description: Api will return suggestions for tasks and events
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
example: The text for which to receive task suggestions
required:
- text
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
properties:
add_task_suggestions:
$ref: 'Components.yaml#/components/schemas/add_task_suggestions'
add_event_suggestions:
$ref: 'Components.yaml#/components/schemas/add_event_suggestions'
'400':
description: "Bad Request"
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_400'
'401':
description: Unauthorized access
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_401'
'404':
description: Not Found
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_404'
'500':
description: Something went wrong
content:
application/json:
schema:
$ref: 'Components.yaml#/components/schemas/response_500'