Login as an Administrator: username: admin password: admin
After configuring the Heroku Connect Addon, please import the contacts-mapping.json into Heroku Connect.
- Request: http://localhost:8080/splash-extended/user/login
- Method Type: POST
- Header Values: Content-Type: application/json; Example:
- Request Data: {"username":"user1","password":"user1"}
- Response Data: { "firstName": "Max", "lastName": "Bauer", "role": "ROLE_CUSTOMER", "userId": "2", "token": "332bc0ddba3c4bc792c4829ff3834ca9" }
- Request: http://localhost:8080/splash-extended/user/login
- Method Type: POST
- Header Values: Content-Type: application/json; Example:
- Request Data:
{
"username":"user1",
"password":"user1",
"recaptcha_challenge_field":"xxxx",
"recaptcha_response_field":"yyyy"
}
- Responses:
- ResponseCode: 200
- Data:
{ "firstName": "Max", "lastName": "Bauer", "role": "ROLE_CUSTOMER", "userId": "2", "token": "332bc0ddba3c4bc792c4829ff3834ca9" }
- ResponseCode: 412 (captcha failed)
- Data:
null
- Data:
- ResponseCode: 401 (login failed)
- Data:
null
- Data:
- ResponseCode: 200
- Request: http://localhost:8080/splash-extended/user/create
- Method Type: POST
- Header Values: Content-Type: application/json; token: 16b63e94679ec680d1395b541ba7b2ad
Example:
- Request Data:
{
"email": "max@gmx.de",
"mainName": "Max",
"mainSurname": "Bauerfeld",
"mainCity": "Sindelfingen",
"mainCountry": "Deutschland",
"mainZipcode": "71063",
"mainStreet": "Sindelfingen",
"mainPhone": "071122872"
}
- Response Data: password of the new generated user
- Request: http://localhost:8080/splash-extended/user/edit/password/:userIdFk
- Method Type: POST
- Header Values: Content-Type: application/json; token: 16b63e94679ec680d1395b541ba7b2ad Example:
- Request Data: http://localhost:8080/splash-extended/user/edit/password/2
- Response Data: /!o8COfz8h
- Request: http://localhost:8080/splash-extended/user/edit/:userIdFk
- Method Type: GET
- Header Values: Content-Type: application/json; token: 332bc0ddba3c4bc792c4829ff3834ca9 Updated URL to retrieve UserInfo by User ID field Example:
- Request URL: http://localhost:8080/splash-extended/user/edit/2
- Request Data:
- Response Data:
{
"email": "max@gmx.de",
"mainName": "Max",
"mainSurname": "Bauerfeld",
"mainCity": "Hockenheim",
"mainCountry": "Deutschland",
"mainZipcode": "71063",
"mainStreet": "Sindelfingen",
"mainPhone": "071122872"
}
- Request: http://localhost:8080/splash-extended/user/search
- Method Type: GET
- Header Values: Content-Type: application/json; token: xyz Example:
- Request Data:
- Response Data:
{
"2": "Bauerfeld",
"3": "Metzger"
}
- Request: http://localhost:8080/splash-extended/user/search/:customerId
- Method Type: GET
- Header Values: Content-Type: application/json; token: xyz Example:
- Request Data: http://localhost:8080/splash-extended/user/search/Bauerf
- Response Data:
{
"2": "Bauerfeld"
}
- Request: http://localhost:8080/splash-extended/user/edit/:userIdFk
- Method Type: PUT
- Header Values: Content-Type: application/json; token: 332bc0ddba3c4bc792c4829ff3834ca9 Updated URL to update UserInfo by User ID field Example:
- Request URL: http://localhost:8080/splash-extended/user/edit/2
- Request Data:
{
"email": "max@gmx.de",
"mainName": "Max",
"mainSurname": "Bauerfeld",
"mainCity": "Hockenheim",
"mainCountry": "Deutschland",
"mainZipcode": "71063",
"mainStreet": "Sindelfingen",
"mainPhone": "071122872"
}
- Response Data:
null
Orientation is MIT licensed. See LICENSE for details.