- CRUD jobs, basic jobs API resources
POST api/jobs/importendpoint 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
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/
public:
- GET http://127.0.0.1:8000/api/jobs
- GET http://127.0.0.1:8000/api/jobs/{job_id}
- POST http://127.0.0.1:8000/api/login - login with email of any seeded user and password 'password'
authenticated:
- POST http://127.0.0.1:8000/api/jobs
- POST http://127.0.0.1:8000/api/jobs/import
- PUT|PATCH http://127.0.0.1:8000/api/jobs/{job}
- DELETE http://127.0.0.1:8000/api/jobs/{job}
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
The Laravel framework is open-sourced software licensed under the MIT license.