-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
44 lines (44 loc) · 1.1 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
securityDefinitions:
BasicAuth:
type: basic
description: HTTP Basic Authentication. Works over `HTTP` and `HTTPS`
parameters:
- name: body
in: body
required: true
schema:
properties:
text:
type: string
description: The text to be tokenized
required: true
encoding:
type: string
description: The encoding to be used for tokenization
required: true
responses:
200:
description: Successful operation
schema:
type: object
properties:
total_tokens:
type: integer
description: The total number of tokens
tokens:
type: array
items:
type: object
properties:
token_string:
type: string
description: The string representation of the token
token_integer:
type: integer
description: The integer representation of the token
400:
description: Invalid request
500:
description: Internal server error
security:
- BasicAuth: []