This application provides a REST endpoint for mobile devices to communicate ratings and profiles for the project Yonder application http://immense-anchorage-4417.herokuapp.com/
This app was based on https://github.com/mlecoutre/nounou/ of which portions were used to deploy the embedded tomcat server and learn which dependencies to use for that purpose.
Substitute <> with immense-anchorage-4417 Root to all requests: http://<>.herokuapp.com/services/
*Add the listed extension for each request after it. EX for the extension "abba/dabba" you would query : http://immense-anchorage-4417.herokuapp.com/services/abba/dabba
Action || HTTP request type || Return Type || extension
- Get all users in database || GET || JSON array || people
- Add user to database, generates & returns private key || POST || Text on success|| people/new/
- Edit user in database, generates & returns private key || POST || Text on success|| people/{id}
- Get specific user from db || GET || JSON array on success, error if not found || people/{id}
- Remove specific user from db || DELETE || nothing on success or error || people/{id}
- Number of users in db || GET || integer || people/count
- Discover if a user has a complete profile || GET || boolean || people/complete/{id}
- Get a prospective match for a user || GET || JSON || people/findMatch/{sexual_preference}/{id}
- Set rate for past match and get a new prospective match || GET || JSON || people/findMatch/{sexual_preference}/{u_id}/{other_person_id}/{rating}
- Hosted on a tomcat7 in the cloud (heroku platform) ** Rest API services to declare People, Sex, and Encounters
- Rest services
- JPA
Run your application
To build your application simply run:
$ mvn package And then run your app using the java command:
$ java -jar target/dependency/webapp-runner.jar target/*.war