Skip to content

Commit a9177bd

Browse files
author
Moses Esan
authored
Added Steps/Tutorial
1 parent 62fd310 commit a9177bd

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

README.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -492,34 +492,45 @@ Please follow the link below to
492492

493493
Postman Chrome App is a great tool for sending post/get requests with an UI.
494494

495-
Register
495+
<h2>Register</h2>
496496
http://localhost:8888/laravel-jwt-login-api/public/api/register [POST]
497497
{"success":true,"message":"Thanks for signing up! Please check your email."}
498498

499499
http://localhost:8888/laravel-jwt-login-api/public/api/verify/[v_code] [GET]
500+
501+
```json
500502
{
501503
success: true,
502504
message: "You have successfully verified your account."
503505
}
506+
```
504507

505508

506-
Log In
509+
<h2>Log In </h2>
507510
http://localhost:8888/laravel-jwt-login-api/public/api/login [POST]
511+
512+
```json
508513
{
509514
token:"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjYsImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo4ODg4XC9sYXJhdmVsLWp3dC1sb2dpbi1hcGlcL3B1YmxpY1wvYXBpXC9sb2dpbiIsImlhdCI6MTQ3MDQxNDk5NiwiZXhwIjoxNDcwNDE4NTk2LCJuYmYiOjE0NzA0MTQ5OTYsImp0aSI6ImMyYmU0YjM0MzIzZWQxYjgxOTgzMGU1N2NiNTE2NjkyIn0.6I9wobL-21o2ESRWvZUuuQPl6EKR52FfBC9BbFVnho0"
510515
}
516+
```
511517

512518

513-
Access Other Routes
519+
<h2>Access Other Routes </h2>
514520
http://localhost:8888/laravel-jwt-login-api/public/api/test [GET]
521+
522+
```json
515523
{
516524
error: "token_not_provided"
517525
}
518-
526+
```
527+
519528
http://localhost:8888/laravel-jwt-login-api/public/api/test?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjYsImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo4ODg4XC9sYXJhdmVsLWp3dC1sb2dpbi1hcGlcL3B1YmxpY1wvYXBpXC9sb2dpbiIsImlhdCI6MTQ3MDQxNTMwNSwiZXhwIjoxNDcwNDE4OTA1LCJuYmYiOjE0NzA0MTUzMDUsImp0aSI6IjZmNmYyYTMxOTAwNTdiMzk5NmEyYTYzOGMyOGM1ZTZhIn0.bwrVFEY1uPlNdm-AG5FHW1RbnFnl2npocxpCODBgu7k
529+
530+
```json
520531
{
521532
foo: "bar"
522533
}
523-
534+
```
524535

525536

0 commit comments

Comments
 (0)