This repository was archived by the owner on Jul 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.json
More file actions
87 lines (87 loc) · 2.47 KB
/
openapi.json
File metadata and controls
87 lines (87 loc) · 2.47 KB
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
{
"openapi": "3.0.2",
"info": {
"title": "Behide API",
"version": "1.0"
},
"servers": [
{
"url": "https://api.behide.titaye.dev/"
}
],
"paths": {
"/auth/refresh-token": {
"post": {
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": ["accessToken", "refreshToken"],
"properties": {
"accessToken": { "type": "string" },
"refreshToken": { "type": "string" }
}
}
}
}
},
"400": {
"description": "Bad request",
"content": {
"application/text": {
"schema": {
"type": "string"
},
"examples": {
"No access token in query": { "value": "Cannot find access_token in query" },
"No refresh token in query": { "value": "Cannot find refresh_token in query" },
"Invalid access token": { "value": "Failed to read access token" }
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/text": {
"schema": {
"type": "string"
},
"examples": {
"Cannot find name identifier claim in jwt token": { "value": "Unauthorized" },
"Failed to parse name identifier claim in jwt token": { "value": "Unauthorized, failed to parse name identifier" }
}
}
}
},
"404": {
"description": "User not found",
"content": {
"application/text": {
"schema": {
"type": "string"
},
"examples": {
"Cannot find the user associated with the jwt token": { "value": "User not found" }
}
}
}
},
"500": {
"description": "Internal server error (failed to generate a new token)",
"content": {
"application/text": {
"schema": {
"type": "string"
}
}
}
}
}
}
}
}
}