adding rest-api
This commit is contained in:
9
rest-api/api-test/create-event.http
Normal file
9
rest-api/api-test/create-event.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://localhost:8080/events
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"name": "Test event",
|
||||
"description": "A test event",
|
||||
"location": "A test location",
|
||||
"dateTime": "2025-01-01T15:30:00.000Z"
|
||||
}
|
||||
7
rest-api/api-test/create-user.http
Normal file
7
rest-api/api-test/create-user.http
Normal file
@@ -0,0 +1,7 @@
|
||||
POST http://localhost:8080/signup
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"email": "test@example.com",
|
||||
"password": "test"
|
||||
}
|
||||
1
rest-api/api-test/delete-event.http
Normal file
1
rest-api/api-test/delete-event.http
Normal file
@@ -0,0 +1 @@
|
||||
DELETE http://localhost:8080/events/1
|
||||
1
rest-api/api-test/get-events.http
Normal file
1
rest-api/api-test/get-events.http
Normal file
@@ -0,0 +1 @@
|
||||
GET http://localhost:8080/events
|
||||
1
rest-api/api-test/get-single-event.http
Normal file
1
rest-api/api-test/get-single-event.http
Normal file
@@ -0,0 +1 @@
|
||||
GET http://localhost:8080/events/1
|
||||
9
rest-api/api-test/update-event.http
Normal file
9
rest-api/api-test/update-event.http
Normal file
@@ -0,0 +1,9 @@
|
||||
PUT http://localhost:8080/events/1
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
"name": "Updated test event",
|
||||
"description": "A test event",
|
||||
"location": "Test location (updated)",
|
||||
"dateTime": "2025-01-01T15:30:00.000Z"
|
||||
}
|
||||
Reference in New Issue
Block a user