|
7 | 7 | * tags={"auth"}, |
8 | 8 | * summary="Forgot Password", |
9 | 9 | * description="Send forgot password request", |
| 10 | + * |
10 | 11 | * @OA\RequestBody( |
| 12 | + * |
11 | 13 | * @OA\MediaType( |
12 | 14 | * mediaType="application/json", |
| 15 | + * |
13 | 16 | * @OA\Schema( |
| 17 | + * |
14 | 18 | * @OA\Property( |
15 | 19 | * property="email", |
16 | 20 | * type="string", |
|
19 | 23 | * ) |
20 | 24 | * ) |
21 | 25 | * ), |
| 26 | + * |
22 | 27 | * @OA\Response(response=200, description="Successful operation"), |
23 | 28 | * @OA\Response(response=400, description="Bad request"), |
24 | 29 | * @OA\Response(response=401, description="Unauthorized"), |
|
33 | 38 | * tags={"auth"}, |
34 | 39 | * summary="Verify Forgot Password Token", |
35 | 40 | * description="Verify the forgot password token sent to the email", |
| 41 | + * |
36 | 42 | * @OA\RequestBody( |
| 43 | + * |
37 | 44 | * @OA\MediaType( |
38 | 45 | * mediaType="application/json", |
| 46 | + * |
39 | 47 | * @OA\Schema( |
| 48 | + * |
40 | 49 | * @OA\Property( |
41 | 50 | * property="email", |
42 | 51 | * type="string", |
|
50 | 59 | * ) |
51 | 60 | * ) |
52 | 61 | * ), |
| 62 | + * |
53 | 63 | * @OA\Response(response=200, description="Successful operation"), |
54 | 64 | * @OA\Response(response=400, description="Bad request"), |
55 | 65 | * @OA\Response(response=401, description="Unauthorized"), |
|
64 | 74 | * tags={"auth"}, |
65 | 75 | * summary="Login Authentication", |
66 | 76 | * description="Log in the user", |
| 77 | + * |
67 | 78 | * @OA\RequestBody( |
| 79 | + * |
68 | 80 | * @OA\MediaType( |
69 | 81 | * mediaType="application/json", |
| 82 | + * |
70 | 83 | * @OA\Schema( |
| 84 | + * |
71 | 85 | * @OA\Property( |
72 | 86 | * property="email", |
73 | 87 | * type="string", |
|
86 | 100 | * ) |
87 | 101 | * ) |
88 | 102 | * ), |
| 103 | + * |
89 | 104 | * @OA\Response(response=200, description="Successful operation"), |
90 | 105 | * @OA\Response(response=400, description="Bad request"), |
91 | 106 | * @OA\Response(response=401, description="Unauthorized"), |
|
100 | 115 | * tags={"auth"}, |
101 | 116 | * summary="Logout", |
102 | 117 | * description="Log out the current user", |
| 118 | + * |
103 | 119 | * @OA\Response(response=200, description="Successful operation"), |
104 | 120 | * @OA\Response(response=400, description="Bad request"), |
105 | 121 | * @OA\Response(response=401, description="Unauthorized"), |
|
116 | 132 | * tags={"auth"}, |
117 | 133 | * summary="Resend the verification token", |
118 | 134 | * description="Request the server to resend the verification token", |
| 135 | + * |
119 | 136 | * @OA\RequestBody( |
| 137 | + * |
120 | 138 | * @OA\MediaType( |
121 | 139 | * mediaType="application/json", |
| 140 | + * |
122 | 141 | * @OA\Schema( |
| 142 | + * |
123 | 143 | * @OA\Property( |
124 | 144 | * property="email", |
125 | 145 | * type="string", |
|
128 | 148 | * ) |
129 | 149 | * ) |
130 | 150 | * ), |
| 151 | + * |
131 | 152 | * @OA\Response(response=200, description="Successful operation"), |
132 | 153 | * @OA\Response(response=400, description="Bad request"), |
133 | 154 | * @OA\Response(response=401, description="Unauthorized"), |
|
144 | 165 | * tags={"auth"}, |
145 | 166 | * summary="Refresh Token for Authentication", |
146 | 167 | * description="Request the jwt refresh token", |
| 168 | + * |
147 | 169 | * @OA\Response(response=200, description="Successful operation"), |
148 | 170 | * @OA\Response(response=400, description="Bad request"), |
149 | 171 | * @OA\Response(response=401, description="Unauthorized"), |
|
160 | 182 | * tags={"auth"}, |
161 | 183 | * summary="User Registration", |
162 | 184 | * description="Register the user", |
| 185 | + * |
163 | 186 | * @OA\RequestBody( |
| 187 | + * |
164 | 188 | * @OA\MediaType( |
165 | 189 | * mediaType="application/json", |
| 190 | + * |
166 | 191 | * @OA\Schema( |
| 192 | + * |
167 | 193 | * @OA\Property( |
168 | 194 | * property="name", |
169 | 195 | * type="string", |
|
192 | 218 | * ) |
193 | 219 | * ) |
194 | 220 | * ), |
| 221 | + * |
195 | 222 | * @OA\Response(response=200, description="Successful operation"), |
196 | 223 | * @OA\Response(response=400, description="Bad request"), |
197 | 224 | * @OA\Response(response=401, description="Unauthorized"), |
|
206 | 233 | * tags={"auth"}, |
207 | 234 | * summary="User Reset Password", |
208 | 235 | * description="Send reset password request", |
| 236 | + * |
209 | 237 | * @OA\RequestBody( |
| 238 | + * |
210 | 239 | * @OA\MediaType( |
211 | 240 | * mediaType="application/json", |
| 241 | + * |
212 | 242 | * @OA\Schema( |
| 243 | + * |
213 | 244 | * @OA\Property( |
214 | 245 | * property="email", |
215 | 246 | * type="string", |
|
223 | 254 | * ) |
224 | 255 | * ) |
225 | 256 | * ), |
| 257 | + * |
226 | 258 | * @OA\Response(response=200, description="Successful operation"), |
227 | 259 | * @OA\Response(response=400, description="Bad request"), |
228 | 260 | * @OA\Response(response=401, description="Unauthorized"), |
|
239 | 271 | * tags={"auth"}, |
240 | 272 | * summary="Get User Info", |
241 | 273 | * description="Get the current user information", |
| 274 | + * |
242 | 275 | * @OA\RequestBody( |
| 276 | + * |
243 | 277 | * @OA\MediaType( |
244 | 278 | * mediaType="application/json", |
| 279 | + * |
245 | 280 | * @OA\Schema( |
| 281 | + * |
246 | 282 | * @OA\Property( |
247 | 283 | * property="email", |
248 | 284 | * type="string", |
|
256 | 292 | * ) |
257 | 293 | * ) |
258 | 294 | * ), |
| 295 | + * |
259 | 296 | * @OA\Response(response=200, description="Successful operation"), |
260 | 297 | * @OA\Response(response=400, description="Bad request"), |
261 | 298 | * @OA\Response(response=401, description="Unauthorized"), |
|
0 commit comments