This is my second Laravel project, but it's the first REST API based so it's bound to have some bugs and general mistakes.
You need to make (L)lmdb_db(InnoDB) database and run migrate, seed, passport install, artisan commands first. Password for all users is 321.
There are two roles for users which defaults to role_id 1, but you can manually set it to 2, which is administrator which has basically all privileges.
For the routes, standard CRUD routes apply for all(most) models with some custom ones.
/api/ prefix applies to all routes
POST /logingenerates a token for the registered user using PassportPOST /logoutdeletes all tokens for the userPOST /registerregisters a user
/artistsCRUD (policy)/videosCRUD (policy) season episodes are just numbers (see test branch)/genresCRUD (policy)/usersCRUD (policy)
GET /videos/toplists top videosGET /videos/searchtypical searchGET /actorslists only artists that are actors(artist_type_id)GET /directorslists only artists that are directors(artist_type_id)GET /usershows user data(auth:api)GET /user/watchlistIdshows video ids for user watchlist(auth:api)GET /user/list2returns user's watchlist with rating_average(auth:api)GET /user/ratesreturns rates for the user(auth:api)
POST /user/raterates a movie(auth:api), rates and updatesPOST /user/rates2takesvideo_idand returns any rates that user has given(auth:api)POST /user/unrate'unrates' the movie(auth:api)POST /user/addToListacceptsvideo_idand adds a movie to user's watchlist(auth:api)
In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.
The Laravel framework is open-sourced software licensed under the MIT license.