Skip to content

This repo is for User CRUD operations REST APIs with hobby selection option.

Notifications You must be signed in to change notification settings

kajal98/rest-apis

Repository files navigation

Rest APIs for User CRUD operation in Laravel v8.75

  1. Clone the repo by git clone https://github.com/kajal98/rest-apis.git
  2. Install the composer by composer install command.
  3. Set env variables (Must set mail configurations)
  4. Start the server by php artisan serve command.

To use postman colletion :

  1. Import postman collection file in your postman
  2. Set global variables in postman as below
    1. url = SERVER_URL (In my case its http://localhost::8000)
    2. admin_token = ADMIN_TOKEN
    3. user_token = USER_TOKEN
  3. Now you are ready to run the APIs

Packages used in it :

  1. tymon/jwt-auth (https://github.com/tymondesigns/jwt-auth)
  2. api-ecosystem-for-laravel/dingo-api (https://github.com/api-ecosystem-for-laravel/dingo-api)
  3. cviebrock/eloquent-sluggable (https://github.com/cviebrock/eloquent-sluggable)
  4. laravel/telescope (https://github.com/laravel/telescope)

PHPCS standard

To check PHPCS standard first please install sudo apt install php-codesniffer and then run the below command in terminal

phpcs --standard=PSR2 --extensions=php --ignore=bootstrap,config,public/adminer.php,resources,storage,routes,tests,vendor,database/migrations,database/seeds,Envoy.blade.php,public/index.php --exclude=Generic.Files.LineLength .

Email templates used in this repo

  1. For verify email

Verify email - kjlkajal98@gmail com - Gmail

  1. For welcome

Welcome - kjlkajal98@gmail com - Gmail

  1. For forgot password

Reset your password - kjlkajal98@gmail com - Gmail

  1. For reset password

Password reset successfully - kjlkajal98@gmail com - Gmail

About

This repo is for User CRUD operations REST APIs with hobby selection option.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published