Skip to content

etolpygo/playground

Repository files navigation

Sample Laravel 10 API

Features overview

  • CRUD jobs, basic jobs API resources
  • POST api/jobs/import endpoint allowing import of a csv jobs file by an authenticated user
  • The endpoint fires a wrapper csv import job, which saves an Import record tagged with the currently authenticated user and dispatches a batch of individual import jobs, one per each job in the csv file
  • Notify admin event is fired after all jobs complete
  • Email is configured to be sent to the log

Running the app

composer install
cp .env.example .env
php artisan key:generate
php artisan migrate:fresh --seed
php artisan serve

Application is now available at http://127.0.0.1:8000/

Endpoints

public:

authenticated:

Sample csv to use with csv import is available under database/sample_csv/samplejobs.csv

Postman collection can be generated from defined routes:

php artisan export:postman

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published