Update docs & fix docs
continuous-integration/drone/pr Build is failing Details

Signed-off-by: kolaente <k@knt.li>
This commit is contained in:
kolaente 2020-12-21 22:36:30 +01:00
parent 09498bb343
commit b21afc89ae
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
7 changed files with 25 additions and 4 deletions

View File

@ -17,11 +17,12 @@
package models
import (
"code.vikunja.io/api/pkg/log"
"strconv"
"strings"
"time"
"code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/user"
"code.vikunja.io/web"
"xorm.io/builder"

View File

@ -17,11 +17,12 @@
package models
import (
"code.vikunja.io/api/pkg/log"
"strconv"
"strings"
"time"
"code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/files"
"code.vikunja.io/api/pkg/metrics"
"code.vikunja.io/api/pkg/user"

View File

@ -17,12 +17,13 @@
package models
import (
"code.vikunja.io/api/pkg/log"
"sort"
"strconv"
"strings"
"time"
"code.vikunja.io/api/pkg/log"
"code.vikunja.io/api/pkg/metrics"
"code.vikunja.io/api/pkg/user"
"code.vikunja.io/web"
@ -192,6 +193,7 @@ type NamespaceWithLists struct {
// @Success 200 {array} models.NamespaceWithLists "The Namespaces."
// @Failure 500 {object} models.Message "Internal error"
// @Router /namespaces [get]
//nolint:gocyclo
func (n *Namespace) ReadAll(a web.Auth, search string, page int, perPage int) (result interface{}, resultCount int, numberOfTotalItems int64, err error) {
if _, is := a.(*LinkSharing); is {
return nil, 0, 0, ErrGenericForbidden{}

View File

@ -3036,6 +3036,12 @@ var doc = `{
"description": "If true, also returns all archived namespaces.",
"name": "is_archived",
"in": "query"
},
{
"type": "boolean",
"description": "If true, also returns only namespaces without their lists.",
"name": "namespaces_only",
"in": "query"
}
],
"responses": {

View File

@ -3019,6 +3019,12 @@
"description": "If true, also returns all archived namespaces.",
"name": "is_archived",
"in": "query"
},
{
"type": "boolean",
"description": "If true, also returns only namespaces without their lists.",
"name": "namespaces_only",
"in": "query"
}
],
"responses": {

View File

@ -3008,6 +3008,10 @@ paths:
in: query
name: is_archived
type: boolean
- description: If true, also returns only namespaces without their lists.
in: query
name: namespaces_only
type: boolean
produces:
- application/json
responses:

View File

@ -18,9 +18,10 @@
package user
import (
"code.vikunja.io/api/pkg/log"
"strconv"
"strings"
"code.vikunja.io/api/pkg/log"
)
// ListUsers returns a list with all users, filtered by an optional searchstring