-
Notifications
You must be signed in to change notification settings - Fork 0
API Documentation
Panderu edited this page Mar 26, 2025
·
2 revisions
This document provides an overview of the available endpoints, request types, payloads, and expected responses for the Study Buddies backend server API.
The local base URL for the API is: http://localhost:8080
The API uses Bearer Authentication with a JWT token. Make sure to include the token in the Authorization header of your requests.
-
Endpoint:
/meeting -
Method:
GET - Description: Retrieves information about a specific meeting.
-
Parameters:
-
id(query, optional): The ID of the meeting to retrieve.
-
-
Response:
-
200 OK: Returns an object containing the meeting details.
-
-
Endpoint:
/meeting -
Method:
PUT - Description: Updates the details of an existing meeting.
-
Parameters:
-
id(query, required): The ID of the meeting to update. -
date_from/date_until: Use following format:dd-MM-yyyy:HH:mm -
repeatable: (daily, weekly, monthly, never)
-
-
Request Body:
{ "title": "string", "description": "string", "date_from": "string", "date_until": "string", "repeatable": "string", "place": "string" } -
Response:
-
200 OK: Returns an object confirming the update.
-
-
Endpoint:
/meeting -
Method:
POST - Description: Creates a new meeting.
-
Parameters:
-
id(query, required): The ID of the meeting to update. -
date_from/date_until: Use following format:dd-MM-yyyy:HH:mm -
repeatable: (daily, weekly, monthly, never)
-
-
Request Body:
{ "title": "string", "description": "string", "date_from": "string", "date_until": "string", "repeatable": "string", "place": "string" } -
Response:
-
200 OK: Returns an object confirming the creation of the meeting.
-
-
Endpoint:
/meeting -
Method:
DELETE - Description: Deletes a specific meeting.
-
Parameters:
-
id(query, required): The ID of the meeting to delete.
-
-
Response:
-
200 OK: Returns an object confirming the deletion.
-
-
Endpoint:
/user -
Method:
GET - Description: Returns a greeting message.
-
Response:
-
200 OK: Returns a string message.
-
-
Endpoint:
/user -
Method:
POST - Description: Creates a new user account.
-
Request Body:
{ "username": "string" } -
Response:
-
200 OK: Returns an object confirming the creation of the user account.
-
-
Properties:
-
title(string) -
description(string) -
date_from(string) -
date_until(string) -
repeatable(string) -
place(string)
-
-
Properties:
-
username(string, required)
-
-
Properties:
-
title(string, required) -
description(string) -
date_from(string, required) -
date_until(string, required) -
repeatable(string) -
place(string)
-
This API specification provides a foundation for interacting with the Study Buddies backend server. For more detailed information and examples, please refer to the dedicated wiki pages.
Study Buddies © 2024/2025 by Halbes Byte is licensed under CC BY-NC-SA 4.0