Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-08-20 23:03:51 +03:00
parent 66cf416519
commit 19d1028812
5 changed files with 14 additions and 11 deletions

View File

@@ -14,26 +14,26 @@ var (
TestServiceName = "TestService"
TestServiceEndpoints = []api.Endpoint{
api.Endpoint{
{
Name: "TestService.LookupUser",
Path: []string{"/v1/user/{name}"},
Method: []string{"GET"},
Handler: "rpc",
},
api.Endpoint{
{
Name: "TestService.UpdateUser",
Path: []string{"/v1/user/{name}"},
Method: []string{"PUT"},
Body: "*",
Handler: "rpc",
},
api.Endpoint{
{
Name: "TestService.DeleteUser",
Path: []string{"/v1/user/{name}"},
Method: []string{"DELETE"},
Handler: "rpc",
},
api.Endpoint{
{
Name: "TestService.MailUser",
Path: []string{"/v1/user/{name}/mail"},
Method: []string{"POST"},