-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcddb03
commit fc23ad5
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"Lokal": { | ||
"baseUrl": "http://localhost:8080" | ||
}, | ||
"Test (test.dancier.net)": { | ||
"baseUrl": "https://test-dancer.dancier.net" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
### Login (run once to retrieve access token) | ||
POST localhost:8080/authentication/login | ||
Content-Type: application/json | ||
|
||
{ | ||
"email": "1-test@dancier.net", | ||
"password": "secret" | ||
} | ||
> {% client.global.set("access_token", response.body.accessToken); %} | ||
|
||
|
||
### Get user's proile (and save it) | ||
GET http://localhost:8080/profile | ||
Authorization: Bearer {{access_token}} | ||
|
||
> {% client.global.set("profile", response.body.toString()); %} | ||
|
||
|
||
### Save user's profile | ||
PUT localhost:8080/profile | ||
Content-Type: application/json | ||
|
||
{ | ||
"size": 130, | ||
"gender": "FEMALE", | ||
"birthDate": "1996-01-19", | ||
"ableTo": [ | ||
{ | ||
"dance": "Tango", | ||
"level": "BASIC", | ||
"leading": "LEAD" | ||
} | ||
], | ||
"wantsTo": [ | ||
{ | ||
"dance": "Tango", | ||
"level": "INTERMEDIATE", | ||
"leading": "FOLLOW" | ||
} | ||
], | ||
"email": "1-test@dancier.net", | ||
"zipCode": "10001", | ||
"city": "Hamburg", | ||
"country": "GER", | ||
"profileImageHash": "1a7efd460ee0be68011291c9f6b1ac5d9b03f9974b66c27b14e59887bf910f8c", | ||
"aboutMe": null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
### Perform Captcha to Login as Human | ||
POST {{baseUrl}}/authentication/loginAsHuman | ||
X-Captcha-Token: token | ||
|
||
> {% client.global.set("access_token", response.body.accessToken); %} | ||
|
||
### Perform initial registration | ||
POST {{baseUrl}}/authentication/registrations | ||
Content-Type: application/json | ||
|
||
{ | ||
"acceptTermsAndConditions": true, | ||
"email": "4-bla@dancier.net", | ||
"password":"secret" | ||
} | ||
|
||
### verify email | ||
PUT {{baseUrl}}/authentication/email-validations/asdf | ||
Authorization: Bearer {{access_token}} | ||
|
||
### Login with new user | ||
POST {{baseUrl}}/authentication/login | ||
Content-Type: application/json | ||
|
||
{ | ||
|
||
} | ||
|
||
> {% client.global.set("access_token", response.body.accessToken); %} | ||
|
||
|
||
### Get user's profile | ||
GET {{baseUrl}}/profile | ||
Authorization: Bearer {{access_token}} |