Recommend this page to a friend! |
Classes of uche | PHP Article System API | readme.md | Download |
|
|
![]() About ProjectThis is an articles API that create, fetch, search, delete, update and rate articles. Authentication was implemented on endpoints that requires a user to create, update or delete an article using Laravel Passport. A user is thus required to pass the bearer token to these endpoints. The endpoints for authentication: Register a new user
Login an existing user
The endpoints for articles: Create an article
Get articles
Get an article
Update an article
Delete an article
Rate an article
Search for article
To get started: + clone or download source code (unzip) + cd to project folder + Set database credentials in .env file + Run composer install + Run php artisan migrate for migrations + Run php artisan passport:install to set up encryption keys to generate tokens + Run php artisan serve to test endpoints + You can run php artisan db:seed to work with existing data |