This is a simple onboarding API that contains the following endpoint:
- POST: [domain_name]/api/v1/register
- POST: [domain_name]/api/v1/login
- GET: [domain_name]/api/v1/post
- GET: [domain_name]/api/v1/post/{id}
- DELETE: [domain_name]/api/v1/post/{id}
- PUT: [domain_name]/api/v1/post/{id}
- POST: [domain_name]/api/v1/post
- GET: [domain_name]/api/v1/comment
- GET: [domain_name]/api/v1/comment/{id}
- DELETE: [domain_name]/api/v1/comment/{id}
- PUT: [domain_name]/api/v1/comment/{id}
- POST: [domain_name]/api/v1/comment
- GET: [domain_name]/api/v1/like
- GET: [domain_name]/api/v1/like/{id}
- PUT: [domain_name]/api/v1/like/{id}
- POST: [domain_name]/api/v1/like
- GET: [domain_name]/api/v1/profile/{id}
- PUT: [domain_name]/api/v1/profile/{id}
- POST: [domain_name]/api/v1/profile
- GET: [domain_name]/api/v1/friend
- GET: [domain_name]/api/v1/friend/{id}
- PUT: [domain_name]/api/v1/friend/{id}
- POST: [domain_name]/api/v1/friend
- GET: [domain_name]/api/v1/find-friends/{id}
$ composer require laravel/passport
$ php artisan migrate
$ php artisan passport:install
Please check the Laravel Passport link for more info.
Please check the postman collection Postman Collection
- Use the Register endpoint to register a user
- Use the Login endpoint to login a user
- Succesful login will return an access_token
- In the endpoints header add keys and values Accept:application/json, Authorization:Bearer [access_token]
- For more information please read the postman documentation for each endpoints.