From 0df8881028869b81f566140af4a1f107310f9b58 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 25 Jul 2018 16:24:46 +0200 Subject: [PATCH] Renamed all packages --- Featurecreep.md | 2 +- main.go | 4 ++-- routes/api/v1/list_by_namespace.go | 2 +- routes/api/v1/login.go | 2 +- routes/api/v1/swagger/options.go | 2 +- routes/api/v1/swagger/responses.go | 2 +- routes/api/v1/token_check.go | 2 +- routes/api/v1/user_add_update.go | 2 +- routes/api/v1/user_delete.go | 2 +- routes/api/v1/user_show.go | 2 +- routes/api/v1/user_update_password.go | 2 +- routes/crud/create.go | 2 +- routes/crud/delete.go | 2 +- routes/crud/helper.go | 2 +- routes/crud/read_all.go | 2 +- routes/crud/read_one.go | 2 +- routes/crud/update.go | 2 +- routes/routes.go | 8 ++++---- 18 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Featurecreep.md b/Featurecreep.md index 28d2b4f5..c0c1a6c2 100644 --- a/Featurecreep.md +++ b/Featurecreep.md @@ -176,7 +176,7 @@ doch auch in einer Funktion machbar sein. * [ ] Cacher konfigurierbar * [ ] Deps nach mod (dem nachfolger von dep) umziehen, blocked by Go 1.11 * [x] Überall echo.NewHTTPError statt c.JSON(Message{}) benutzen -* [ ] Bessere Fehlermeldungen wenn das Model was ankommt falsch ist und nicht geparst werden kann +* [x] Bessere Fehlermeldungen wenn das Model was ankommt falsch ist und nicht geparst werden kann * [ ] Fehlerhandling irgendwie besser machen. Zb mit "World error messages"? Sprich, die Methode ruft einfach auf obs die entsprechende Fehlermeldung gibt und zeigt sonst 500 an. * [ ] Endpoints neu organisieren? Also zb `namespaces/:nID/lists/:lID/items/:iID` statt einzelnen Endpoints für alles * [ ] Wenn die ID bei irgendeiner GetByID... Methode < 1 ist soll ein error not exist geworfen werden diff --git a/main.go b/main.go index 6915274f..c60e0bc4 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,8 @@ package main import ( - "git.kolaente.de/konrad/list/models" - "git.kolaente.de/konrad/list/routes" + "code.vikunja.io/api/models" + "code.vikunja.io/api/routes" "context" "fmt" diff --git a/routes/api/v1/list_by_namespace.go b/routes/api/v1/list_by_namespace.go index 7d34f2f6..c028ca4f 100644 --- a/routes/api/v1/list_by_namespace.go +++ b/routes/api/v1/list_by_namespace.go @@ -1,7 +1,7 @@ package v1 import ( - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" "net/http" "strconv" diff --git a/routes/api/v1/login.go b/routes/api/v1/login.go index 34d6df5f..6dfc21b6 100644 --- a/routes/api/v1/login.go +++ b/routes/api/v1/login.go @@ -3,7 +3,7 @@ package v1 import ( "crypto/md5" "encoding/hex" - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/dgrijalva/jwt-go" "github.com/labstack/echo" "net/http" diff --git a/routes/api/v1/swagger/options.go b/routes/api/v1/swagger/options.go index 6d7386b0..b42f2c48 100644 --- a/routes/api/v1/swagger/options.go +++ b/routes/api/v1/swagger/options.go @@ -1,6 +1,6 @@ package swagger -import "git.kolaente.de/konrad/list/models" +import "code.vikunja.io/api/models" // not actually a response, just a hack to get go-swagger to include definitions // of the various XYZOption structs diff --git a/routes/api/v1/swagger/responses.go b/routes/api/v1/swagger/responses.go index abdf6749..25d2253b 100644 --- a/routes/api/v1/swagger/responses.go +++ b/routes/api/v1/swagger/responses.go @@ -1,6 +1,6 @@ package swagger -import "git.kolaente.de/konrad/list/models" +import "code.vikunja.io/api/models" // Message // swagger:response Message diff --git a/routes/api/v1/token_check.go b/routes/api/v1/token_check.go index 615d0ead..943d7e2e 100644 --- a/routes/api/v1/token_check.go +++ b/routes/api/v1/token_check.go @@ -2,7 +2,7 @@ package v1 import ( "fmt" - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/dgrijalva/jwt-go" "github.com/labstack/echo" ) diff --git a/routes/api/v1/user_add_update.go b/routes/api/v1/user_add_update.go index 3ab566a7..3cbd0ad8 100644 --- a/routes/api/v1/user_add_update.go +++ b/routes/api/v1/user_add_update.go @@ -1,7 +1,7 @@ package v1 import ( - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" "net/http" "strconv" diff --git a/routes/api/v1/user_delete.go b/routes/api/v1/user_delete.go index fa794c7f..228c7721 100644 --- a/routes/api/v1/user_delete.go +++ b/routes/api/v1/user_delete.go @@ -1,7 +1,7 @@ package v1 import ( - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" "net/http" "strconv" diff --git a/routes/api/v1/user_show.go b/routes/api/v1/user_show.go index 89112237..11c537a9 100644 --- a/routes/api/v1/user_show.go +++ b/routes/api/v1/user_show.go @@ -1,7 +1,7 @@ package v1 import ( - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" "net/http" "strconv" diff --git a/routes/api/v1/user_update_password.go b/routes/api/v1/user_update_password.go index f1f9c16d..6d57bc36 100644 --- a/routes/api/v1/user_update_password.go +++ b/routes/api/v1/user_update_password.go @@ -4,7 +4,7 @@ import ( "net/http" "strconv" - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" ) diff --git a/routes/crud/create.go b/routes/crud/create.go index fb95dbcb..0d6d8546 100644 --- a/routes/crud/create.go +++ b/routes/crud/create.go @@ -1,7 +1,7 @@ package crud import ( - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" "net/http" "reflect" diff --git a/routes/crud/delete.go b/routes/crud/delete.go index 39bc7014..b81b7b69 100644 --- a/routes/crud/delete.go +++ b/routes/crud/delete.go @@ -1,7 +1,7 @@ package crud import ( - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" "net/http" ) diff --git a/routes/crud/helper.go b/routes/crud/helper.go index a307992f..67d46995 100644 --- a/routes/crud/helper.go +++ b/routes/crud/helper.go @@ -1,7 +1,7 @@ package crud import ( - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" ) // WebHandler defines the webhandler object diff --git a/routes/crud/read_all.go b/routes/crud/read_all.go index 9cd39e2e..f23e17fe 100644 --- a/routes/crud/read_all.go +++ b/routes/crud/read_all.go @@ -1,7 +1,7 @@ package crud import ( - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" "net/http" ) diff --git a/routes/crud/read_one.go b/routes/crud/read_one.go index 73eda9b4..418c40e5 100644 --- a/routes/crud/read_one.go +++ b/routes/crud/read_one.go @@ -2,7 +2,7 @@ package crud import ( "fmt" - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" "net/http" ) diff --git a/routes/crud/update.go b/routes/crud/update.go index 6ea06510..56832610 100644 --- a/routes/crud/update.go +++ b/routes/crud/update.go @@ -1,7 +1,7 @@ package crud import ( - "git.kolaente.de/konrad/list/models" + "code.vikunja.io/api/models" "github.com/labstack/echo" "net/http" "reflect" diff --git a/routes/routes.go b/routes/routes.go index d7eef98b..54370b13 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -30,10 +30,10 @@ import ( "github.com/labstack/echo" "github.com/labstack/echo/middleware" - "git.kolaente.de/konrad/list/models" - apiv1 "git.kolaente.de/konrad/list/routes/api/v1" - _ "git.kolaente.de/konrad/list/routes/api/v1/swagger" // for docs generation - "git.kolaente.de/konrad/list/routes/crud" + "code.vikunja.io/api/models" + apiv1 "code.vikunja.io/api/routes/api/v1" + _ "code.vikunja.io/api/routes/api/v1/swagger" // for docs generation + "code.vikunja.io/api/routes/crud" "net/http" )