bash git clone cd
python -m venv env source env/bin/activate # On Windows: env\Scripts\activate
pip install django djangorestframework
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
access the admin panel by going to '/admin/' and login using the credentials you just made.
python manage.py runserver
- Create an Event: Add a new event.
- Update an Event: Modify an existing event.
- List Events: Get a list of all events.
- Event Details: View details of a specific event.
- Delete an Event: Remove an event.
- Register for an event.
- View Attendance: Check the attendance of an event.
- Edit Attendance: Update the attendance details.
note: Feedback can only be created if attendance is marked as True.
- Create Feedback: Add feedback for an event.
- View Feedback: Retrieve feedback for a specific event.
HTTP Method | Endpoint | Description |
---|---|---|
POST | /api/events/create/ |
Create an event. |
PUT | /api/event/update/<int:eventId>/ |
Update an event. |
GET | /api/events/all/ |
List all events. |
GET | /api/events/<int:eventId>/ |
View event details. |
DELETE | /api/events/<int:eventId>/delete/ |
Delete an event. |
POST | /api/events/register/<int:eventId>/ |
Register for a specific event. |
HTTP Method | Endpoint | Description |
---|---|---|
GET | /api/events/attendance/view/<int:eventId>/ |
View attendance. |
PUT | /api/events/attendance/edit/<int:eventId>/ |
Edit attendance. |
HTTP Method | Endpoint | Description |
---|---|---|
POST | /api/events/feedback/<int:registrationId>/ |
Create feedback. |
GET | /api/events/feedback/view/<int:eventId>/ |
View feedback for an event. |