@@ -47,7 +47,7 @@ public class ClientResource {
4747 @ Inject
4848 SearchSession searchSession ;
4949
50- @ PUT
50+ @ POST
5151 @ Path ("/client" )
5252 public ClientRetrieveDto createClient (ClientCreateUpdateDto dto ) {
5353 Client client = new Client ();
@@ -63,7 +63,7 @@ public ClientRetrieveDto retrieveClient(@PathParam("id") Long id) {
6363 return mapper .toDto ( client );
6464 }
6565
66- @ POST
66+ @ PUT
6767 @ Path ("/client/{id}" )
6868 public void updateClient (@ PathParam ("id" ) Long id , ClientCreateUpdateDto dto ) {
6969 Client client = findClient ( id );
@@ -76,7 +76,7 @@ public void deleteClient(@PathParam("id") Long id) {
7676 findClient ( id ).delete ();
7777 }
7878
79- @ PUT
79+ @ POST
8080 @ Path ("/manager" )
8181 public BusinessManagerRetrieveDto createBusinessManager (BusinessManagerCreateUpdateDto dto ) {
8282 BusinessManager businessManager = new BusinessManager ();
@@ -85,7 +85,7 @@ public BusinessManagerRetrieveDto createBusinessManager(BusinessManagerCreateUpd
8585 return mapper .toDto ( businessManager );
8686 }
8787
88- @ POST
88+ @ PUT
8989 @ Path ("/manager/{id}" )
9090 public void updateBusinessManager (@ PathParam ("id" ) Long id , BusinessManagerCreateUpdateDto dto ) {
9191 BusinessManager businessManager = findBusinessManager ( id );
@@ -98,7 +98,7 @@ public void deleteBusinessManager(@PathParam("id") Long id) {
9898 findBusinessManager ( id ).delete ();
9999 }
100100
101- @ POST
101+ @ PUT
102102 @ Path ("/client/{clientId}/manager/{managerId}" )
103103 public void assignBusinessManager (@ PathParam ("clientId" ) Long clientId , @ PathParam ("managerId" ) Long managerId ) {
104104 unAssignBusinessManager ( clientId );
0 commit comments