47 lines
937 B
HTTP
47 lines
937 B
HTTP
@RegistrationAPI_HostAddress = http://localhost:5063
|
|
|
|
### Clear all registrations
|
|
DELETE {{RegistrationAPI_HostAddress}}/api/Registration/clear
|
|
|
|
###
|
|
|
|
POST {{RegistrationAPI_HostAddress}}/api/participant/register
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"isMember": true,
|
|
"firstName": "Test",
|
|
"surName": "User",
|
|
"grade": "9",
|
|
"phoneNumber": "0700000000",
|
|
"email": "test.user@example.com",
|
|
"guardianName": "Guardian User",
|
|
"guardianPhoneNumber": "0700000001",
|
|
"guardianEmail": "guardian.user@example.com",
|
|
"isVisitor": false,
|
|
"hasApprovedGdpr": true,
|
|
"friends": "Friend One",
|
|
"specialDiet": "None"
|
|
}
|
|
|
|
### Register volunteer
|
|
POST {{RegistrationAPI_HostAddress}}/api/volunteer/register
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"firstName": "Jane",
|
|
"surName": "Doe",
|
|
"phoneNumber": "0700123456",
|
|
"email": "email@email.com",
|
|
"hasApprovedGdpr": true,
|
|
"areasOfInterest": [
|
|
{
|
|
"name": "Städ"
|
|
},
|
|
{
|
|
"name": "Kiosk"
|
|
}
|
|
]
|
|
}
|
|
|
|
|