Skip to content

Bitz3d/spot-displayer-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spot-displayer-back

project in progress

  1. 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"
  1. 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

  1. 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

Rest of end-points

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages