Run populateDatabase.sql to create the necessary tables.
Format: http://localhost:8080/api/companies/get
Format: http://localhost:8080/api/companies/get/shipping
Format: http://localhost:8080/api/companies/get/client
Format: http://localhost:8080/api/companies/post?name=SOME_NAME&companyType=SOME_COMPANY_TYPE
Example: http://localhost:8080/api/companies/post?name=Viento Shipping&companyType=1
Format: http://localhost:8080/api/companies/SOME_ID/delete
Example: http://localhost:8080/api/companies/17/delete
Format: http://localhost:8080/api/ships/get
Format: http://localhost:8080/api/ship/post?name=SOME_NAME&id=SOME_ID&companyid=SOME_COMPANY_ID
Example: http://localhost:8080/api/shipCompanies/post?name=Titanic II&id=1&companyid=2
Format: http://localhost:8080/api/ship/SOME_ID/delete
Example: http://localhost:8080/api/shipCompanies/5/delete
###Account Types Current Account Types: Captain, Freight Manager, Client
You shouldn't have to post or delete account types, but the functionality exists.
Format: http://localhost:8080/api/accountTypes/get
Format: http://localhost:8080/api/ships/post/?type=SOME_ACCOUNT_TYPE&description=SOME_DESC
Example: http://localhost:8080/api/ships/post/?type=Captain&description=Users who are captains of ships
Format: http://localhost:8080/api/accountType/SOME_ID/delete
Example: http://localhost:8080/api/accountType/SOME_ID/delete
###Users
Format: http://localhost:8080/api/users/get