@@ -47,7 +47,7 @@ public class ClientResource {
47
47
@ Inject
48
48
SearchSession searchSession ;
49
49
50
- @ PUT
50
+ @ POST
51
51
@ Path ("/client" )
52
52
public ClientRetrieveDto createClient (ClientCreateUpdateDto dto ) {
53
53
Client client = new Client ();
@@ -63,7 +63,7 @@ public ClientRetrieveDto retrieveClient(@PathParam("id") Long id) {
63
63
return mapper .toDto ( client );
64
64
}
65
65
66
- @ POST
66
+ @ PUT
67
67
@ Path ("/client/{id}" )
68
68
public void updateClient (@ PathParam ("id" ) Long id , ClientCreateUpdateDto dto ) {
69
69
Client client = findClient ( id );
@@ -76,7 +76,7 @@ public void deleteClient(@PathParam("id") Long id) {
76
76
findClient ( id ).delete ();
77
77
}
78
78
79
- @ PUT
79
+ @ POST
80
80
@ Path ("/manager" )
81
81
public BusinessManagerRetrieveDto createBusinessManager (BusinessManagerCreateUpdateDto dto ) {
82
82
BusinessManager businessManager = new BusinessManager ();
@@ -85,7 +85,7 @@ public BusinessManagerRetrieveDto createBusinessManager(BusinessManagerCreateUpd
85
85
return mapper .toDto ( businessManager );
86
86
}
87
87
88
- @ POST
88
+ @ PUT
89
89
@ Path ("/manager/{id}" )
90
90
public void updateBusinessManager (@ PathParam ("id" ) Long id , BusinessManagerCreateUpdateDto dto ) {
91
91
BusinessManager businessManager = findBusinessManager ( id );
@@ -98,7 +98,7 @@ public void deleteBusinessManager(@PathParam("id") Long id) {
98
98
findBusinessManager ( id ).delete ();
99
99
}
100
100
101
- @ POST
101
+ @ PUT
102
102
@ Path ("/client/{clientId}/manager/{managerId}" )
103
103
public void assignBusinessManager (@ PathParam ("clientId" ) Long clientId , @ PathParam ("managerId" ) Long managerId ) {
104
104
unAssignBusinessManager ( clientId );
0 commit comments