Renamed all packages
This commit is contained in:
parent
d18570574a
commit
0df8881028
18 changed files with 22 additions and 22 deletions
|
@ -176,7 +176,7 @@ doch auch in einer Funktion machbar sein.
|
||||||
* [ ] Cacher konfigurierbar
|
* [ ] Cacher konfigurierbar
|
||||||
* [ ] Deps nach mod (dem nachfolger von dep) umziehen, blocked by Go 1.11
|
* [ ] Deps nach mod (dem nachfolger von dep) umziehen, blocked by Go 1.11
|
||||||
* [x] Überall echo.NewHTTPError statt c.JSON(Message{}) benutzen
|
* [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.
|
* [ ] 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
|
* [ ] 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
|
* [ ] Wenn die ID bei irgendeiner GetByID... Methode < 1 ist soll ein error not exist geworfen werden
|
||||||
|
|
4
main.go
4
main.go
|
@ -1,8 +1,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"git.kolaente.de/konrad/list/routes"
|
"code.vikunja.io/api/routes"
|
||||||
|
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
|
@ -3,7 +3,7 @@ package v1
|
||||||
import (
|
import (
|
||||||
"crypto/md5"
|
"crypto/md5"
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/dgrijalva/jwt-go"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package swagger
|
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
|
// not actually a response, just a hack to get go-swagger to include definitions
|
||||||
// of the various XYZOption structs
|
// of the various XYZOption structs
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package swagger
|
package swagger
|
||||||
|
|
||||||
import "git.kolaente.de/konrad/list/models"
|
import "code.vikunja.io/api/models"
|
||||||
|
|
||||||
// Message
|
// Message
|
||||||
// swagger:response Message
|
// swagger:response Message
|
||||||
|
|
|
@ -2,7 +2,7 @@ package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/dgrijalva/jwt-go"
|
"github.com/dgrijalva/jwt-go"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package v1
|
package v1
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package crud
|
package crud
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package crud
|
package crud
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package crud
|
package crud
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WebHandler defines the webhandler object
|
// WebHandler defines the webhandler object
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package crud
|
package crud
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,7 +2,7 @@ package crud
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package crud
|
package crud
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"net/http"
|
"net/http"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
|
@ -30,10 +30,10 @@ import (
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"github.com/labstack/echo/middleware"
|
"github.com/labstack/echo/middleware"
|
||||||
|
|
||||||
"git.kolaente.de/konrad/list/models"
|
"code.vikunja.io/api/models"
|
||||||
apiv1 "git.kolaente.de/konrad/list/routes/api/v1"
|
apiv1 "code.vikunja.io/api/routes/api/v1"
|
||||||
_ "git.kolaente.de/konrad/list/routes/api/v1/swagger" // for docs generation
|
_ "code.vikunja.io/api/routes/api/v1/swagger" // for docs generation
|
||||||
"git.kolaente.de/konrad/list/routes/crud"
|
"code.vikunja.io/api/routes/crud"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue