Skip to content

Repository files navigation

If issue with installation.. ? Checkout the zip.

Product Management - Role & Permission Laravel 9 REST API with Passport Authentication - Ajax

Installation

  • Run cp .env.example .env
  • Run composer install
  • Provide db name, username and password in .env
  • Run php artisan migrate --seed
  • Run php artisan passport:install
  • Run php artisan serve

Sign up > Sign In > enjoy

or

you can also import db from app\database\

Admin credentials:

Email: admin@gmail.com or sadmin@gmail.com
Password: 12345678

Test

You can also Test the REST API with POSTMAN.

Register API:

  • POST http://localhost:8000/api/register?name=Md. Abdur Rahman&email=arcse3048@gmail.com&password=12345678

Login Passport API:

  • POST http://localhost:8000/api/login?email=arcse3048@gmail.com&phone=0125478963&password=12345678

Passport Product Create API:

  • POST http://localhost:8000/api/products?name=Test Name&description=Test Description&price=112&status=1p

Product List API:

  • GET http://localhost:8000/api/products

Show Single Product API:

  • GET http://localhost:8000/api/products/{id}

Product Update API:

  • PUT http://localhost:8000/api/products/{id}

Product Delete API:

  • DELETE http://localhost:8000/api/products/{id}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages