33 lines
726 B
HTTP
33 lines
726 B
HTTP
### GET All events
|
|
GET http://localhost:8080/events
|
|
|
|
|
|
### Post a new event
|
|
POST http://localhost:8080/events/
|
|
content-type: application/json
|
|
|
|
{
|
|
"name": "My test event",
|
|
"description": "this is a event I creted for testing",
|
|
"location": "test location",
|
|
"dateTime": "2025-01-01T13:40:00.000Z",
|
|
"UserId": 0
|
|
}
|
|
### Get a Single Event
|
|
GET http://localhost:8080/events/1
|
|
### Get a non existing event
|
|
GET http://localhost:8080/events/10000
|
|
###
|
|
|
|
|
|
### Update an existing event
|
|
PUT http://localhost:8080/events/1
|
|
content-type: application/json
|
|
|
|
{
|
|
"name": "My test event",
|
|
"description": "this is a event I created for testing",
|
|
"location": "test QUACK location",
|
|
"dateTime": "2025-01-01T13:40:00.000Z",
|
|
"UserId": 0
|
|
} |