Skip to content

mahlerj/splash-extended

Repository files navigation

Splash-Extended

A simple Template to get your Salesforce Contacts online.

Login as an Administrator: username: admin password: admin

Deploy

After configuring the Heroku Connect Addon, please import the contacts-mapping.json into Heroku Connect.

REST API Specification v2 (for calling the Java Backend)

###Login and get a User Token back

  • 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" }

###Login with CAPTCHA and get a User Token back

  • 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"}
  • Response Data: ResponseCode: 200 Response Data: { "firstName": "Max", "lastName": "Bauer", "role": "ROLE_CUSTOMER", "userId": "2", "token": "332bc0ddba3c4bc792c4829ff3834ca9" } ResponseCode: 412 (captcha failed) null ResponseCode: 401 (login failed) null

###Create New User

Example:

  • Request Data: {
    "email": "[email protected]", "mainName": "Max", "mainSurname": "Bauerfeld", "mainCity": "Sindelfingen", "mainCountry": "Deutschland", "mainZipcode": "71063", "mainStreet": "Sindelfingen", "mainPhone": "071122872" }

  • Response Data: password of the new generated user

###Create new Password

###Contact Object

###Get all Contacts

Search Contacts by last name - or a part of it

###Update Contact Object

License

Orientation is MIT licensed. See LICENSE for details.

About

Template for Java, Spring, Hibernate, AngularJS and Heroku Connect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors