Rest Service.
mvnw clean package.
14, 19, 25, 26, 43, 46, 51, 99.
/contacts - returns list of Contacts presented in DB.
/contacts/{contactId} - returns last contacts application if presented.
/contacts/{contactId}/applications - returns List of contacts applications presented in DB.
/contacts/{contactId}/applications/{applicationId} - returns applications with given id if presented.
/contacts - post Contact.
/contacts/{contactId}/applications - post Applications.
/contacts/{contactId}/applications/{applicationId} - updates Application with given ID.
/contacts/{contactId} - delete Contact with given ID.
/contacts/{contactId}/applications/{applicationId} - delete Application with given ID.
{"CONTACT_ID" : {id}}
{"APPLICATION_ID" : {id}, "PRODUCT_NAME" : {name}}