Skip to content

mar-babu/laravelPassportRestApi

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: [email protected] or [email protected]
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 protected]&password=12345678

Login Passport API:

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

No releases published

Packages

No packages published