Welcome to the LRCY Project API Documentation
This documentation provides you with information about the various APIs available in our system. We have organized the APIs into five main categories:
- User API (19): These APIs handle user-related tasks such as registration, login, updating profiles, and stats about the user.
- Event API (5): These APIs deal with event-related tasks like creating, updating, deleting, and retrieving event details.
- Post API (19): These APIs handle post-related tasks such as creating, updating, deleting, and fetching posts, comments, and more.
- Admin API (22): These APIs are responsible for administrative tasks such as managing users, events, and posts, as well as handling system settings.
- Download API (1): This API allows users to download files or resources from the system.
Please click on the respective tabs above to explore the available APIs and their respective documentation. The documentation includes information about each API's functionality, parameters, return values, and possible errors.
Unit Testing
All of the unit tests for the User, Event, Post, and Admin controllers have been generated by Laravel and have passed Laravel's testing suite. These tests were specifically made in Laravel and are a part of the LRCY Project API Documentation. The purpose of unit testing is to verify that each unit of code works as expected and to catch any bugs or errors early in the development process. These tests were created to ensure that the APIs are functioning as intended and to catch any issues before they can affect users.
User Controller (Tests\Unit\UserController)
- Signup api
- Register api
- Login api
- Recover request api
- Change password api
- Check request status api
- Get user info api
- Logout api
- Edit profile api
- Get trainings info api
- Get events organized api
- Get events organized count api
- Get total volunteering time api
- Get completed trainings count api
- Get posts count api
- Get comments count api
- Get total likes received api
- Get own posts api
- Get branch info api
Event Controller (Tests\Unit\EventController)
- Get yearly goals api
- Get event info api
- Get announcements api
- Get event pictures api
- Get training info api
Post Controller (Tests\Unit\PostController)
- Create post api
- Edit post api
- Delete post api
- Get post api
- Get posts api
- Like post api
- Unlike post api
- Comment post api
- Reply comment api
- Like comment api
- Unlike comment api
- Delete comment api
- Delete reply api
- Edit comment api
- Edit reply api
- Get comments api
- Get replies api
- Get post likes api
- Get comment likes api
Admin Controller (Tests\Unit\AdminController)
- Admin login api
- Logout api
- Add user api
- Edit user api
- Delete user api
- Get requests api
- Accept request api
- Decline request api
- Send announcement api
- Delete announcement api
- Edit announcement api
- Add event api
- Edit event api
- Delete event api
- Set yearly goal api
- Edit yearly goal api
- Delete yearly goal api
- Add training for user api
- Delete training for user api
- Add image to event api
- Remove image from event api