project in progress
- to lunch u have to add file in path -> /src/main/resources/config.propperties with
- database.login="database-login"
- database.password="database-password"
- target.upload.folder="folder-name"
- Install PostgreSql
in order to generate tables in databse change application.properties -> spring.jpa.hibernate.ddl-auto=create-drop
and in table role
2 insterts
insert into role (id,role) values (1,"ADMIN"); insert into role (id,role) values (2,"USER");
3 In console type: I. mvn package II. java -jar spot-displayer-0.0.1-SNAPSHOT.jar
- With generated token u have access to user's end-points
ec2-52-30-135-35.eu-west-1.compute.amazonaws.com:8080/api/user -> GET
Header - Authorization Bearer generated-token
this end point just return String "test user" made to test Role in application
I. ec2-52-30-135-35.eu-west-1.compute.amazonaws.com:8080/upload -> POST
Header - Authorization Bearer generated-token
Body - files type file -> u can get fakeRoboteBackUp from ./robotFakeBackup.zip
It should return status 200 and add welding spots to your account
II. ec2-52-30-135-35.eu-west-1.compute.amazonaws.com:8080/welding-spots -> GET
Header - Authorization Bearer generated-token
shuold return all welding spots binded with your account
III. ec2-52-30-135-35.eu-west-1.compute.amazonaws.com:8080/welding-spots/{model} -> GET
Header - Authorization Bearer generated-token
should return all welding spot of specyfic type