Skip to content

Restful Api with Jwt authentication using Laravel Lumen

License

Notifications You must be signed in to change notification settings

smzislam/crudApiBackend

Repository files navigation

crudApiBackend using Lumen PHP Framework

It's a restful api with Jwt Authentication using Laravel Lumen. (It's front end repository is: https://github.com/smzislam/-crudApiFrontend)

use "php -S localhost:8000 -t public" to run the api

End points

To create user: http://localhost:8000/api/register, method: post

{ "name":"xxx", "email":"[email protected]", "password":"xxx" }

To get jwt token, login: http://localhost:8000/api/login, method: post

{ "email":"[email protected]", "password":"xxx" }

Products End points:

1. http://localhost:8000/api/product, method: get
2. http://localhost:8000/api/product/:id, method: get
3. http://localhost:8000/api/product, method: post (for insert)
4. http://localhost:8000/api/product/:id, method: post (for update)
5. http://localhost:8000/api/product/:id, method: delete

License

This software is licensed under the MIT license.

About

Restful Api with Jwt authentication using Laravel Lumen

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published