thi is the API for meeting where you can create a meeting and invite people to join the meeting.
- docker
- docker-compose
- Clone the project.
- Run the command
docker-compose up
to start the database.
- Java 17
- Maven
- Node 20
- Postgres
- Intellij IDEA
- Clone the project.
Git clone https://github.com/aomerge/Meeting.git
- Configure the application.properties file with your database settings.
- Run Project in Intellij IDEA.
- Create a database with the name
meeting
. - You can configure the database in the file
application-dev.properties
in the foldersrc/main/resources
. - Change the values of the variables
spring.datasource.url
,spring.datasource.username
andspring.datasource.password
according to your database settings.
The API has the following routes:
- GET / login
- POST / register
- DELETE /user/delete
- UPDATE /update
- POST /session/createSession
- UPDATE /session/updateSession/{id}
- DELETE /session/deleteSession/{id}
- POST /session/{id}/register
- POST /session/{id}/register/private
- DELETE /session/{id}/register/delete
- GET /session
- GET /session/{id}
- Description: This route is used to authenticate the user.
- Parameters: No parameters.
- Request body:
email
: User email.password
: User password.
- Success response: Structure of the response in case of success.
status
: 200.message
: "User authenticated".data
: User data.token
: User token.
- Description: This route is used to register a new user.
- Parameters: No parameters.
- Request body:
name
: User name.email
: User email.password
: User password.
- Success response: Structure of the response in case of success.
status
: 201.message
: "User registered".data
: User data.
- Description: This route is used to delete a user.
- Headers:
Authorization
: User token.
- Parameters:
confirm
: Confirmation of deletion.
- Request body:
email
: User email.password
: User password.
- Success response: Structure of the response in case of success.
status
: 200.message
: "User deleted".data
: User data.
- Description: This route is used to update a user.
- Headers:
Authorization
: User token.
- Parameters: No parameters.
- Request body:
name
: User name.email
: User email.password
: User password.
- Success response: Structure of the response in case of success.
status
: 200.message
: "User update".data
: User data.
- Description: This route is used to create a new session.
- Headers:
Authorization
: User token.
- Parameters: No parameters.
- Request body:
name
: Session name.date
: Session date.time
: Session time.description
: Session description.
- Success response: Structure of the response in case of success.
status
: 201.message
: "Session created".data
: Session data.
- Description: This route is used to update a session.
- Headers:
Authorization
: User token.
- Parameters: No parameters.
- Request body:
name
: Session name.date
: Session date.time
: Session time.description
: Session description.
- Success response: Structure of the response in case of success.
status
: 200.message
: "Session updated".data
: Session data.
- Description: This route is used to delete a session.
- Headers:
Authorization
: User token.
- Parameters:
confirm
: Confirmation of deletion.
- Request body:
id
: Session id.
- Success response: Structure of the response in case of success.
status
: 200.message
: "Session deleted".data
: Session data.
- Description: This route is used to register a user in a session.
- Headers:
Authorization
: User token.
- Parameters: No parameters.
- Request body:
email
: User email.
- Success response: Structure of the response in case of success.
status
: 201.message
: "User registered in session".data
: Session data.
- Description: This route is used to register a user in a private session.
- Headers:
Authorization
: User token.
- Parameters:
key
: Session key.email
: User email.
- Request body:: Not parameters.
- Success response: Structure of the response in case of success.
status
: 201.message
: "User registered in private session".data
: Session data.
- Description: This route is used to delete a user from a session.
- Headers:
Authorization
: User token.
- Parameters: No parameters.
- Request body:
email
: User email.
- Success response: Structure of the response in case of success.
status
: 200.message
: "User deleted from session".data
: Session data.
- Description: This route is used to list all sessions.
- Parameters: No parameters.
- Request body: No parameters.
- Success response: Structure of the response in case of success.
status
: 200.message
: "Sessions listed".data
: List of sessions.
-
Description: This route is used to list a session.
-
Parameters: No parameters.
-
Request body: No parameters.
-
Success response: Structure of the response in case of success.
status
: 200.message
: "Session listed".data
: Session data.
This project is licensed under the MIT License - see the LICENSE file for details.