From 404045739bbc7a24699b0d6f274d5a1b03f5f1c6 Mon Sep 17 00:00:00 2001 From: Nachi Ueno Date: Tue, 2 Jan 2018 07:53:24 -0800 Subject: [PATCH] Improve README Closes #36 - fix typos - fix server command --- README.md | 3 ++- pkg/cmd/contrail/apisrv.go | 1 + pkg/common/api.go | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5cf4e9e990..b8134b1753 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ make generate ``` Templates are stored in [tools/templates](tools/templates) -You can add your template on template_config.yaml +[Template configuraion](tools/templates/template_config.yaml) +You can add your template on template_config.yaml. ## Schema Files diff --git a/pkg/cmd/contrail/apisrv.go b/pkg/cmd/contrail/apisrv.go index 706324fd69..20b5086743 100644 --- a/pkg/cmd/contrail/apisrv.go +++ b/pkg/cmd/contrail/apisrv.go @@ -23,6 +23,7 @@ var apiServerCmd = &cobra.Command{ if err != nil { log.Fatal(err) } + server.Init() err = server.Run() if err != nil { log.Fatal(err) diff --git a/pkg/common/api.go b/pkg/common/api.go index 0cb8b2987b..0b22d8aee3 100644 --- a/pkg/common/api.go +++ b/pkg/common/api.go @@ -2,6 +2,7 @@ package common import ( "database/sql" + "fmt" "github.com/labstack/echo" ) @@ -28,6 +29,7 @@ func RegisterAPI(api RESTAPI) { //Routes registers routes func Routes(e *echo.Echo) { for _, api := range apiRegistory { + fmt.Println(api.Path()) e.POST(api.Path(), api.Create) e.PUT(api.LongPath(), api.Update) e.DELETE(api.LongPath(), api.Delete)