POST /api/register
{
"email": "[email protected]",
"plainPassword": "motDePasseSecurise"
}
{
"message": "User created successfully. Please confirm your email.",
"userId": 1
}
POST /api/login_check
{
"email": "[email protected]",
"password": "motDePasse"
}
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."
}
GET /api/user/
Aucun
[
{ "id": 1, "email": "[email protected]" },
{ "id": 2, "email": "[email protected]" }
]
PUT /api/profile/edit
{
"displayName": "Paul"
}
{
"id": 1,
"displayName": "Paul"
}
POST /api/event/create
{
"location": "string",
"description": "string",
"startDate": "YYYY-MM-DD",
"endDate": "YYYY-MM-DD",
"private": true,
"currentState": "scheduled / canceled",
"privateLocation": true
}
{
"id": 1,
"location": "string",
"description": "string",
"startDate": "YYYY-MM-DD",
"endDate": "YYYY-MM-DD",
"private": true,
"currentState": "scheduled",
"privateLocation": true,
"owner": {
"id": 1,
"displayName": "string"
},
"participants": [...]
}
PUT /api/event/edit/{id}
{
"location": "string",
"description": "string",string
"startDate": "YYYY-MM-DD",
"endDate": "YYYY-MM-DD",
"private": true,
"currentState": "scheduled",
"privateLocation": true
}
{
"id": 1,
"location": "string",
"description": "string",
"startDate": "YYYY-MM-DD",
"endDate": "YYYY-MM-DD",
"private": true,
"currentState": "scheduled",
"privateLocation": true,
"owner": {
"id": 1,
"displayName": "string"
},
"participants": [...]
}
GET /api/event/public
[
{
"id": 1,
"location": "string",
"description": "string",
"startDate": "YYYY-MM-DD",
"endDate": "YYYY-MM-DD",
"private": false,
"currentState": "scheduled",
"privateLocation": false,
"owner": { "id": 1, "displayName": "string" },
"participants": [...]
}
]
GET /api/event/my-events
[
{
"id": 1,
"location": "string",
"description": "string",
"startDate": "YYYY-MM-DD",
"endDate": "YYYY-MM-DD",
"private": true,
"currentState": "scheduled",
"privateLocation": false,
"owner": { "id": 1, "displayName": "string" },
"participants": [...]
}
]
POST /api/event/{id}/subscribe
Body : Aucun
{
"id": 1,
"location": "string",
"description": "string",
"startDate": "YYYY-MM-DD",
"endDate": "YYYY-MM-DD",
"private": false,
"currentState": "scheduled",
"privateLocation": false,
"participants": [...]
}
GET /api/event/{id}/participants-status
[
{
"displayName": "Owner Name",
"email": "[email protected]",
"status": "accepted"
},
{
"displayName": "Participant Name",
"email": "[email protected]",
"status": "pending"
}
]
POST /api/event/invitation/{id}/accept
Aucun
{
"id": 1,
"event": { "id": 1, "location": "string" },
"sendBy": { "id": 1, "displayName": "Owner Name" },
"sentTo": { "id": 2, "displayName": "Invité Name" },
"status": "accepted"
}
POST /api/event/invitation/{id}/refuse
Aucun
{
"id": 1,
"event": { "id": 1, "location": "string" },
"sendBy": { "id": 1, "displayName": "Owner Name" },
"sentTo": { "id": 2, "displayName": "Invité Name" },
"status": "refused"
}
POST /api/event/{id}/suggestion
{
"name": "Nom de la suggestion"
}
{
"id": 1,
"name": "Nom de la suggestion",
"isTaken": false,
"people": null
}
GET /api/event/{id}/suggestions
Aucun
[
{
"id": 1,
"name": "Nom de la suggestion",
"isTaken": false,
"people": null
}
]
POST /api/event/{id}/support
{
"name": "Nom du support"
}
{
"id": 1,
"name": "Nom du support",
"people": { "id": 2, "displayName": "Participant Name" },
"suggestion": null
}
POST /api/event/{id}/support-from-suggestion
{
"suggestionId": 1
}
{
"id": 1,
"name": "Nom de la suggestion",
"people": { "id": 2, "displayName": "Participant Name" },
"suggestion": { "id": 1, "name": "Nom de la suggestion", "isTaken": true }
}
GET /api/event/{id}/supports
Aucun
[
{
"id": 1,
"name": "Nom du support",
"people": { "id": 2, "displayName": "Participant Name" },
"suggestion": null
}
]
DELETE /api/event/support/{id}
Aucun
{
"success": "Support supprimé avec succès"
}