For generate the .jar of application
mvn package -DskipTests
For create a containers of application
docker-compose up
On wls run the following command to get docker eth0
ip addr show eth0 | grep -oP '(?<=inet\s)\d (\.\d ){3}'
On powershell as admin run the following command to allow the application accessible on ip address
netsh interface portproxy add v4tov4 listenport=8765 listenaddress=0.0.0.0 connectport=8765 connectaddress=<dockerEth0>
BaseUrl: http://10.234.89.187:6968
Endpoint: /event
Type: Multipartform
Attributes:
nameOfEvent: String
responsivle_area: String
description: String
images: file (Optional)
localEvent: String
initialDate: Date
finishDate: Date
initialTime: Time
finishTime: Time
Return:
{
"event_id": "Long",
"nameOfEvent": "String",
"responsible_area": "String",
"description": "String",
"imgUrl": "List<String> url",
"localEvent": "String",
"initialDate": "Date",
"finishDate": "Date",
"initialTime": "Time",
"finishTime": "Time",
"date_created": "LocalDate",
"time_created": "LocalTime",
"author": "String"
}
Endpoint: /event/events
Return:
[
{
"event_id": "Long",
"nameOfEvent": "String",
"responsible_area": "String",
"access_event": "String",
"description": "String",
"localEvent": "String",
"initialDate": "Date",
"finishDate": "Date",
"initialTime": "Time",
"finishTime":"Time",
"imgUrl": "List<String> url"
}
]
Endpoint: /event/{event_id}
Return:
{
"event_id": "Long",
"nameOfEvent": "String",
"responsible_area": "String",
"access_event": "String",
"description": "String",
"imgUrl": "List<String> url",
"localEvent": "String",
"initialDate": "Date",
"finishDate": "Date",
"initialTime": "Time",
"finishTime": "Time",
"date_created": "LocalDate",
"time_created": "LocalTime",
"author": "String"
}
Endpoint: /event/name
Return:
{
"event_id": "Long",
"nameOfEvent": "String"
}
Endpoint: /event/myEvents
Return:
[
{
"event_id": "Long",
"nameOfEvent": "String",
"initialDate": "Date",
"initialTime": "Time",
"local": "String",
"responsible_are": "String"
}
]
Endpoint: /event/card
Return:
{
"event_id": "Long",
"initialDate": "Date",
"nameOfEvent": "String",
"description": "String"
}
Endpoint: /event/update/{event_id}
Attributes:
responsible_area: String
description: String
localEvent: String
initialDate: Date
finishDate: Date
initialTime: Time
finishTime: Time
{
"event_id": "Long",
"nameOfEvent": "String",
"responsible_area": "String",
"description": "String",
"imgUrl": "List<String>",
"localEvent": "String",
"initialDate": "Date",
"finishDate": "Date",
"initialTime": "Time",
"finishTime": "Time",
"date_created": "Date",
"time_created": "Date",
"author": "String"
}
Endpoint: /assessment/{event_id}
Type: JSON
suggestion: String
description_comment: String
highlightPoint: String
assessment: Integer
Return:
{
"assessment_id": "Long",
"author": "String",
"suggestion": "String",
"description_comment": "String",
"assessment": "Integer",
"hour": "LocalTime",
"date_created": "LocalDate",
"highlightPoint": "String"
}
Endpoint: /assessment/assessments/{event_id}
Return:
{
"event_id": "Long",
"nameOfEvent": "String",
"responsible_area": "String",
"access_event": "String",
"description": "String",
"imgUrl": "List<String> Url",
"localEvent": "String",
"initialDate": "Date",
"finishDate": "Date",
"initialTime": "Time",
"finishTime": "Time",
"assessments": "List<Assessment>"
}
Assessment return:
{
"assessment_id": "Long",
"date_created": "Local Date",
"hour": "Local Time",
"author": "String",
"description_comment": "String",
"suggestion": "String",
"highlightPoint": "String",
"assessment": "Integer"
}
Endpoint: /assessment/comments/{event_id}
Return:
[
{
"comment_id": "Long",
"author": "String",
"description_comment": "String",
"date_created": "Date",
"assessment": "Integer"
}
]
Endpoint: /dashboard/average/{event_id}
Return:
{
"average": "Integer"
}
Endpoint: /dashboard/highPoints/{event_id}
Return:
{
"event_id": "Long",
"food": "Integer",
"topics_addressed": "Integer",
"punctuality": "Integer",
"social_interactions": "Integer"
}
Endpoint: /dashboard/suggestion/{event_id}
Rerturn:
[
{
"id": "Long",
"date_suggestion": "Date",
"message_suggestion": "String"
}
]
Endpoint: /ticket/{event_id}
Type: JSON
Attributes:
initialDateTicket: Date,
finishDateTicket: Date,
initialTimeTicket: Time,
finishTimeTicket: Time
Return:
{
"initialDateTicket": "Date",
"finishDateTicket": "Date",
"initialTimeTicket": "Time",
"finishTimeTicket": "Time",
"authorTicket": "String"
}
Endpoint: /ticket/getTicket/{event_id}
Return:
{
"ticket_id": "Long",
"event_name": "String",
"qrCodeNumber": "Integer",
"author": "String",
"date_created": "Date",
"timeCreated": "Time"
}
Endpoint: /ticket/{event_id}/{ticket_id}
Attributes:
images: List<String>
Return:
{
"ticket_id": "Long",
"imageUrl": "List<String>",
"author": "String",
"date_created": "Date",
"time_created": "Time"
}
Endpoint: /ticket/{event_id/{ticket_id}/confirm
Return:
{
"ticket_id": "Long",
"author": "String",
"isPresence": true,
"date_created": "Date",
"time_created": "Time"
}
Endpoint: /ticket/myTickets
Return:
[
{
"initial_date": "Date",
"nameOfEvent": "String",
"qrCodeTicket": "String",
"responsible_area": "String",
"imageUrl": "String"
}
]