Skip to content

afaf-tech/laravel-chat-api

Repository files navigation

Build Status Total Downloads Latest Stable Version License

chat-api

How to use this api?

  1. Clone this repo
  2. composer install
  3. cp .env.example .env
  4. Create database and modify .env
  5. php artisan migrate
  6. php artisan key:generate
  7. php artisan jwt:secret
  8. php artisan serve
  9. continue to watch postman documentation and implement it on your postman app!

NB: you can also use the provided sql database and import it to your own database.

🙌💥 Up and Running 💥🙌🙌

Important Endpoints

list of endpoints available

#endpoint #METHOD #information
api/register POST Register a new account
api/login GET Login your account
api/logout GET Logout
api/refresh GET Refresh JWT Token
api/whoami GET check the current user
api/messages/with/{to_user_id} GET watch your certain conversation
api/messages/all/ GET watch your all conversation with latest messages and unreadcount
api/messages/send/ POST Open manage server

License

Copyright (C) afaf-tech.id - All Rights Reserved Unauthorized copying of this file, via any medium is strictly prohibited Proprietary and confidential Written by afaf-tech , Desember 2020

About

This API should behave like WhatsApp interaction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published