Acert build of user-service-api
This commit is contained in:
parent
dbf9d46679
commit
b490b04bd1
3 changed files with 17 additions and 5 deletions
18
rest.http
18
rest.http
|
|
@ -24,12 +24,24 @@ Accept: application/json
|
|||
}
|
||||
|
||||
#### Update an existing user (replace {{id}} or use a concrete id like 1)
|
||||
PUT http://175.15.15.91:8080/api/users/69311094e258303f40941a52
|
||||
PUT http://175.15.15.91:8080/api/users/6927c8c75efcfda14c3ea570
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
# Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"email": "edinhoadm@gmail.com",
|
||||
"password": "7654321"
|
||||
"email": "rayanvix@gmail.com",
|
||||
"password": "123456"
|
||||
}
|
||||
|
||||
### Module of authorization
|
||||
|
||||
POST http://175.15.15.91:8080/auth/login
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
# Authorization: Bearer {{token}}
|
||||
|
||||
{
|
||||
"email": "rayanvix@gmail.com",
|
||||
"password": "123456"
|
||||
}
|
||||
|
|
@ -26,7 +26,8 @@ dependencies {
|
|||
// Lombok for code generation (at compile time)
|
||||
compileOnly 'org.projectlombok:lombok'
|
||||
annotationProcessor 'org.projectlombok:lombok'
|
||||
|
||||
annotationProcessor 'org.projectlombok:lombok-mapstruct-binding:0.2.0'
|
||||
|
||||
// Lombok para TESTES (ESSENCIAL)
|
||||
testCompileOnly 'org.projectlombok:lombok'
|
||||
testAnnotationProcessor 'org.projectlombok:lombok'
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|||
|
||||
@SpringBootApplication
|
||||
public class UserServiceApiApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(UserServiceApiApplication.class, args);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue