File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -492,34 +492,45 @@ Please follow the link below to
492
492
493
493
Postman Chrome App is a great tool for sending post/get requests with an UI.
494
494
495
- Register
495
+ < h2 > Register</ h2 >
496
496
http://localhost:8888/laravel-jwt-login-api/public/api/register [ POST]
497
497
{"success": true ,"message":"Thanks for signing up! Please check your email."}
498
498
499
499
http://localhost:8888/laravel-jwt-login-api/public/api/verify/[v_code ] [ GET]
500
+
501
+ ``` json
500
502
{
501
503
success: true,
502
504
message: "You have successfully verified your account."
503
505
}
506
+ ```
504
507
505
508
506
- Log In
509
+ < h2 > Log In </ h2 >
507
510
http://localhost:8888/laravel-jwt-login-api/public/api/login [ POST]
511
+
512
+ ``` json
508
513
{
509
514
token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjYsImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo4ODg4XC9sYXJhdmVsLWp3dC1sb2dpbi1hcGlcL3B1YmxpY1wvYXBpXC9sb2dpbiIsImlhdCI6MTQ3MDQxNDk5NiwiZXhwIjoxNDcwNDE4NTk2LCJuYmYiOjE0NzA0MTQ5OTYsImp0aSI6ImMyYmU0YjM0MzIzZWQxYjgxOTgzMGU1N2NiNTE2NjkyIn0.6I9wobL-21o2ESRWvZUuuQPl6EKR52FfBC9BbFVnho0"
510
515
}
516
+ ```
511
517
512
518
513
- Access Other Routes
519
+ < h2 > Access Other Routes </ h2 >
514
520
http://localhost:8888/laravel-jwt-login-api/public/api/test [ GET]
521
+
522
+ ``` json
515
523
{
516
524
error: "token_not_provided"
517
525
}
518
-
526
+ ```
527
+
519
528
http://localhost:8888/laravel-jwt-login-api/public/api/test?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjYsImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo4ODg4XC9sYXJhdmVsLWp3dC1sb2dpbi1hcGlcL3B1YmxpY1wvYXBpXC9sb2dpbiIsImlhdCI6MTQ3MDQxNTMwNSwiZXhwIjoxNDcwNDE4OTA1LCJuYmYiOjE0NzA0MTUzMDUsImp0aSI6IjZmNmYyYTMxOTAwNTdiMzk5NmEyYTYzOGMyOGM1ZTZhIn0.bwrVFEY1uPlNdm-AG5FHW1RbnFnl2npocxpCODBgu7k
529
+
530
+ ``` json
520
531
{
521
532
foo: "bar"
522
533
}
523
-
534
+ ```
524
535
525
536
You can’t perform that action at this time.
0 commit comments