- Run
php artisan migrate --seed
- Updated
.env.example
database crendetials for pstgres. - Added ext-pdo_pgsql as requirement to
composer.json
. - Created middleware for Orgonization verification
AuthOrganizationMiddleware
. - Added global scope to events to make sure all request to database has authorization in body.
- See
RequireContentTypeJsonTest
for phpunit test with data provider. - See
EventPutTest
andEventPatchTest
for use ofworksome/request-factories
in tests. - There is postman collection added to this repo
sync-words.postman_collection.json
.
- Not fan of
organization_id
column inevents
table refering toauthorization
table. - There is no create api end point
- Changed routes to:
- GET
/api/list
>/api/events/list
- GET|PUT|PATCH|DELETE
/api/{id}
>/api/events/{id}
- GET
- Changed
authorization
table toorganizations
- Not fan of naming columns like
even_title
in theevents
table should be just title. So changed them:event_title
>title
event_start_date
>start_date
event_end_date
>end_date