fmt
This commit is contained in:
parent
29d8f6060b
commit
31632711fd
|
@ -14,22 +14,22 @@ import (
|
|||
"bytes"
|
||||
"encoding/json"
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"errors"
|
||||
"fmt"
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/oauth2"
|
||||
"io"
|
||||
"mime/multipart"
|
||||
"golang.org/x/oauth2"
|
||||
"golang.org/x/net/context"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"time"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -88,7 +88,6 @@ func atoi(in string) (int, error) {
|
|||
return strconv.Atoi(in)
|
||||
}
|
||||
|
||||
|
||||
// selectHeaderContentType select a content type from the available list.
|
||||
func selectHeaderContentType(contentTypes []string) string {
|
||||
if len(contentTypes) == 0 {
|
||||
|
@ -280,7 +279,6 @@ func (c *APIClient) prepareRequest (
|
|||
// Add the user agent to the request.
|
||||
localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent)
|
||||
|
||||
|
||||
if ctx != nil {
|
||||
// add context to the request
|
||||
localVarRequest = localVarRequest.WithContext(ctx)
|
||||
|
@ -316,7 +314,6 @@ func (c *APIClient) prepareRequest (
|
|||
return localVarRequest, nil
|
||||
}
|
||||
|
||||
|
||||
// Add a file to the multipart request
|
||||
func addFile(w *multipart.Writer, fieldName, path string) error {
|
||||
file, err := os.Open(path)
|
||||
|
@ -335,7 +332,7 @@ func addFile(w *multipart.Writer, fieldName, path string) error {
|
|||
}
|
||||
|
||||
// Prevent trying to import "fmt"
|
||||
func reportError(format string, a ...interface{}) (error) {
|
||||
func reportError(format string, a ...interface{}) error {
|
||||
return fmt.Errorf(format, a...)
|
||||
}
|
||||
|
||||
|
@ -389,7 +386,6 @@ func detectContentType(body interface{}) string {
|
|||
return contentType
|
||||
}
|
||||
|
||||
|
||||
// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go
|
||||
type cacheControl map[string]string
|
||||
|
||||
|
@ -412,7 +408,7 @@ func parseCacheControl(headers http.Header) cacheControl {
|
|||
}
|
||||
|
||||
// CacheExpires helper function to determine remaining time before repeating a request.
|
||||
func CacheExpires(r *http.Response) (time.Time) {
|
||||
func CacheExpires(r *http.Response) time.Time {
|
||||
// Figure out when the cache expires.
|
||||
var expires time.Time
|
||||
now, err := time.Parse(time.RFC1123, r.Header.Get("date"))
|
||||
|
@ -439,7 +435,6 @@ func CacheExpires(r *http.Response) (time.Time) {
|
|||
return expires
|
||||
}
|
||||
|
||||
func strlen(s string) (int) {
|
||||
func strlen(s string) int {
|
||||
return utf8.RuneCountInString(s)
|
||||
}
|
||||
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
package swagger
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"net/http"
|
||||
"strings"
|
||||
"golang.org/x/net/context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
|
@ -27,7 +27,6 @@ var (
|
|||
|
||||
type AssigneesApiService service
|
||||
|
||||
|
||||
/* AssigneesApiService Add multiple new assignees to a task
|
||||
Adds multiple new assignees to a task. The assignee needs to have access to the list, the doer must be able to edit this task. Every user not in the list will be unassigned from the task, pass an empty array to unassign everyone.
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
|
@ -51,9 +50,8 @@ func (a *AssigneesApiService) TasksTaskIDAssigneesBulkPost(ctx context.Context,
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -104,7 +102,6 @@ func (a *AssigneesApiService) TasksTaskIDAssigneesBulkPost(ctx context.Context,
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -147,7 +144,7 @@ func (a *AssigneesApiService) TasksTaskIDAssigneesGet(ctx context.Context, taskI
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -196,7 +193,6 @@ func (a *AssigneesApiService) TasksTaskIDAssigneesGet(ctx context.Context, taskI
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -223,9 +219,8 @@ func (a *AssigneesApiService) TasksTaskIDAssigneesPut(ctx context.Context, assig
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -276,7 +271,6 @@ func (a *AssigneesApiService) TasksTaskIDAssigneesPut(ctx context.Context, assig
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -304,9 +298,8 @@ func (a *AssigneesApiService) TasksTaskIDAssigneesUserIDDelete(ctx context.Conte
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -355,7 +348,5 @@ func (a *AssigneesApiService) TasksTaskIDAssigneesUserIDDelete(ctx context.Conte
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
package swagger
|
||||
|
||||
type CodeVikunjaIoWebHttpError struct {
|
||||
|
||||
Code int32 `json:"code,omitempty"`
|
||||
|
||||
Message string `json:"message,omitempty"`
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
package swagger
|
||||
|
||||
type FilesFile struct {
|
||||
|
||||
Created string `json:"created,omitempty"`
|
||||
|
||||
Id int32 `json:"id,omitempty"`
|
||||
|
|
5
go.mod
5
go.mod
|
@ -1,3 +1,8 @@
|
|||
module code.vikunja.io/go-sdk
|
||||
|
||||
go 1.12
|
||||
|
||||
require (
|
||||
golang.org/x/net v0.0.0-20191014212845-da9a3fd4c582
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
|
||||
)
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||
golang.org/x/net v0.0.0-20191014212845-da9a3fd4c582 h1:p9xBe/w/OzkeYVKm234g55gMdD1nSIooTir5kV11kfA=
|
||||
golang.org/x/net v0.0.0-20191014212845-da9a3fd4c582/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0=
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
|
@ -11,13 +11,13 @@
|
|||
package swagger
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"net/http"
|
||||
"strings"
|
||||
"golang.org/x/net/context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
|
@ -27,7 +27,6 @@ var (
|
|||
|
||||
type LabelsApiService service
|
||||
|
||||
|
||||
/* LabelsApiService Get all labels a user has access to
|
||||
Returns all labels which are either created by the user or associated with a task the user has at least read-access to.
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
|
@ -65,7 +64,7 @@ func (a *LabelsApiService) LabelsGet(ctx context.Context, localVarOptionals map[
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -114,7 +113,6 @@ func (a *LabelsApiService) LabelsGet(ctx context.Context, localVarOptionals map[
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -140,9 +138,8 @@ func (a *LabelsApiService) LabelsIdDelete(ctx context.Context, id int32) (Models
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -191,7 +188,6 @@ func (a *LabelsApiService) LabelsIdDelete(ctx context.Context, id int32) (Models
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -217,9 +213,8 @@ func (a *LabelsApiService) LabelsIdGet(ctx context.Context, id int32) (ModelsLab
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -268,7 +263,6 @@ func (a *LabelsApiService) LabelsIdGet(ctx context.Context, id int32) (ModelsLab
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -295,9 +289,8 @@ func (a *LabelsApiService) LabelsIdPut(ctx context.Context, id int32, label Mode
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -348,7 +341,6 @@ func (a *LabelsApiService) LabelsIdPut(ctx context.Context, id int32, label Mode
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -373,9 +365,8 @@ func (a *LabelsApiService) LabelsPut(ctx context.Context, label ModelsLabel) (Mo
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -426,7 +417,6 @@ func (a *LabelsApiService) LabelsPut(ctx context.Context, label ModelsLabel) (Mo
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -453,9 +443,8 @@ func (a *LabelsApiService) TasksTaskIDLabelsBulkPost(ctx context.Context, label
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -506,7 +495,6 @@ func (a *LabelsApiService) TasksTaskIDLabelsBulkPost(ctx context.Context, label
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -549,7 +537,7 @@ func (a *LabelsApiService) TasksTaskLabelsGet(ctx context.Context, task int32, l
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -598,7 +586,6 @@ func (a *LabelsApiService) TasksTaskLabelsGet(ctx context.Context, task int32, l
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -626,9 +613,8 @@ func (a *LabelsApiService) TasksTaskLabelsLabelDelete(ctx context.Context, task
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -677,7 +663,6 @@ func (a *LabelsApiService) TasksTaskLabelsLabelDelete(ctx context.Context, task
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -704,9 +689,8 @@ func (a *LabelsApiService) TasksTaskLabelsPut(ctx context.Context, task int32, l
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -757,7 +741,5 @@ func (a *LabelsApiService) TasksTaskLabelsPut(ctx context.Context, task int32, l
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
|
32
list_api.go
32
list_api.go
|
@ -11,13 +11,13 @@
|
|||
package swagger
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"net/http"
|
||||
"strings"
|
||||
"golang.org/x/net/context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
|
@ -27,7 +27,6 @@ var (
|
|||
|
||||
type ListApiService service
|
||||
|
||||
|
||||
/* ListApiService Get all lists a user has access to
|
||||
Returns all lists a user has access to.
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
|
@ -65,7 +64,7 @@ func (a *ListApiService) ListsGet(ctx context.Context, localVarOptionals map[str
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -114,7 +113,6 @@ func (a *ListApiService) ListsGet(ctx context.Context, localVarOptionals map[str
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -140,7 +138,6 @@ func (a *ListApiService) ListsIdDelete(ctx context.Context, id int32) (ModelsMes
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -191,7 +188,6 @@ func (a *ListApiService) ListsIdDelete(ctx context.Context, id int32) (ModelsMes
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -217,9 +213,8 @@ func (a *ListApiService) ListsIdGet(ctx context.Context, id int32) (ModelsList,
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -268,7 +263,6 @@ func (a *ListApiService) ListsIdGet(ctx context.Context, id int32) (ModelsList,
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -304,7 +298,7 @@ func (a *ListApiService) ListsIdListusersGet(ctx context.Context, id int32, loca
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -353,7 +347,6 @@ func (a *ListApiService) ListsIdListusersGet(ctx context.Context, id int32, loca
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -380,9 +373,8 @@ func (a *ListApiService) ListsIdPost(ctx context.Context, id int32, list ModelsL
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -433,7 +425,6 @@ func (a *ListApiService) ListsIdPost(ctx context.Context, id int32, list ModelsL
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -460,9 +451,8 @@ func (a *ListApiService) NamespacesNamespaceIDListsPut(ctx context.Context, name
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -513,7 +503,5 @@ func (a *ListApiService) NamespacesNamespaceIDListsPut(ctx context.Context, name
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,5 @@
|
|||
package swagger
|
||||
|
||||
type ModelsPasswordTokenRequest struct {
|
||||
|
||||
Email string `json:"email,omitempty"`
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
package swagger
|
||||
|
||||
type ModelsTaskAssginee struct {
|
||||
|
||||
Created int32 `json:"created,omitempty"`
|
||||
|
||||
UserId int32 `json:"user_id,omitempty"`
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
package swagger
|
||||
|
||||
type ModelsTaskAttachment struct {
|
||||
|
||||
Created int32 `json:"created,omitempty"`
|
||||
|
||||
CreatedBy *ModelsUser `json:"created_by,omitempty"`
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
package swagger
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"net/http"
|
||||
"strings"
|
||||
"golang.org/x/net/context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
|
@ -27,7 +27,6 @@ var (
|
|||
|
||||
type NamespaceApiService service
|
||||
|
||||
|
||||
/* NamespaceApiService Updates a namespace
|
||||
Updates a namespace.
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
|
@ -51,9 +50,8 @@ func (a *NamespaceApiService) NamespaceIdPost(ctx context.Context, id int32, nam
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -104,7 +102,6 @@ func (a *NamespaceApiService) NamespaceIdPost(ctx context.Context, id int32, nam
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -145,7 +142,7 @@ func (a *NamespaceApiService) NamespacesGet(ctx context.Context, localVarOptiona
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -194,7 +191,6 @@ func (a *NamespaceApiService) NamespacesGet(ctx context.Context, localVarOptiona
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -220,7 +216,6 @@ func (a *NamespaceApiService) NamespacesIdDelete(ctx context.Context, id int32)
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -271,7 +266,6 @@ func (a *NamespaceApiService) NamespacesIdDelete(ctx context.Context, id int32)
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -297,9 +291,8 @@ func (a *NamespaceApiService) NamespacesIdGet(ctx context.Context, id int32) (Mo
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -348,7 +341,6 @@ func (a *NamespaceApiService) NamespacesIdGet(ctx context.Context, id int32) (Mo
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -374,9 +366,8 @@ func (a *NamespaceApiService) NamespacesIdListsGet(ctx context.Context, id int32
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -425,7 +416,6 @@ func (a *NamespaceApiService) NamespacesIdListsGet(ctx context.Context, id int32
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -450,9 +440,8 @@ func (a *NamespaceApiService) NamespacesPut(ctx context.Context, namespace Model
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -503,7 +492,5 @@ func (a *NamespaceApiService) NamespacesPut(ctx context.Context, namespace Model
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
|
|
@ -11,12 +11,12 @@
|
|||
package swagger
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"net/http"
|
||||
"strings"
|
||||
"golang.org/x/net/context"
|
||||
"encoding/json"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
|
@ -26,7 +26,6 @@ var (
|
|||
|
||||
type ServiceApiService service
|
||||
|
||||
|
||||
/* ServiceApiService Info
|
||||
Returns the version, frontendurl, motd and various settings of Vikunja
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
|
@ -47,7 +46,6 @@ func (a *ServiceApiService) InfoGet(ctx context.Context) (V1VikunjaInfos, *http
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -86,7 +84,5 @@ func (a *ServiceApiService) InfoGet(ctx context.Context) (V1VikunjaInfos, *http
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
|
|
@ -11,13 +11,13 @@
|
|||
package swagger
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"net/http"
|
||||
"strings"
|
||||
"golang.org/x/net/context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
|
@ -27,7 +27,6 @@ var (
|
|||
|
||||
type SharingApiService service
|
||||
|
||||
|
||||
/* SharingApiService Get teams on a list
|
||||
Returns a list with all teams which have access on a given list.
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
|
@ -67,7 +66,7 @@ func (a *SharingApiService) ListsIdTeamsGet(ctx context.Context, id int32, local
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -116,7 +115,6 @@ func (a *SharingApiService) ListsIdTeamsGet(ctx context.Context, id int32, local
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -143,9 +141,8 @@ func (a *SharingApiService) ListsIdTeamsPut(ctx context.Context, id int32, list
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -196,7 +193,6 @@ func (a *SharingApiService) ListsIdTeamsPut(ctx context.Context, id int32, list
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -239,7 +235,7 @@ func (a *SharingApiService) ListsIdUsersGet(ctx context.Context, id int32, local
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -288,7 +284,6 @@ func (a *SharingApiService) ListsIdUsersGet(ctx context.Context, id int32, local
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -315,9 +310,8 @@ func (a *SharingApiService) ListsIdUsersPut(ctx context.Context, id int32, list
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -368,7 +362,6 @@ func (a *SharingApiService) ListsIdUsersPut(ctx context.Context, id int32, list
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -396,7 +389,6 @@ func (a *SharingApiService) ListsListIDTeamsTeamIDDelete(ctx context.Context, li
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -447,7 +439,6 @@ func (a *SharingApiService) ListsListIDTeamsTeamIDDelete(ctx context.Context, li
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -476,9 +467,8 @@ func (a *SharingApiService) ListsListIDTeamsTeamIDPost(ctx context.Context, list
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -529,7 +519,6 @@ func (a *SharingApiService) ListsListIDTeamsTeamIDPost(ctx context.Context, list
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -557,7 +546,6 @@ func (a *SharingApiService) ListsListIDUsersUserIDDelete(ctx context.Context, li
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -608,7 +596,6 @@ func (a *SharingApiService) ListsListIDUsersUserIDDelete(ctx context.Context, li
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -637,9 +624,8 @@ func (a *SharingApiService) ListsListIDUsersUserIDPost(ctx context.Context, list
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -690,7 +676,6 @@ func (a *SharingApiService) ListsListIDUsersUserIDPost(ctx context.Context, list
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -733,7 +718,7 @@ func (a *SharingApiService) ListsListSharesGet(ctx context.Context, list int32,
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -782,7 +767,6 @@ func (a *SharingApiService) ListsListSharesGet(ctx context.Context, list int32,
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -809,9 +793,8 @@ func (a *SharingApiService) ListsListSharesPut(ctx context.Context, list int32,
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -862,7 +845,6 @@ func (a *SharingApiService) ListsListSharesPut(ctx context.Context, list int32,
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -890,9 +872,8 @@ func (a *SharingApiService) ListsListSharesShareDelete(ctx context.Context, list
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -941,7 +922,6 @@ func (a *SharingApiService) ListsListSharesShareDelete(ctx context.Context, list
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -969,9 +949,8 @@ func (a *SharingApiService) ListsListSharesShareGet(ctx context.Context, list in
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -1020,7 +999,6 @@ func (a *SharingApiService) ListsListSharesShareGet(ctx context.Context, list in
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -1063,7 +1041,7 @@ func (a *SharingApiService) NamespacesIdTeamsGet(ctx context.Context, id int32,
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -1112,7 +1090,6 @@ func (a *SharingApiService) NamespacesIdTeamsGet(ctx context.Context, id int32,
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -1139,9 +1116,8 @@ func (a *SharingApiService) NamespacesIdTeamsPut(ctx context.Context, id int32,
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -1192,7 +1168,6 @@ func (a *SharingApiService) NamespacesIdTeamsPut(ctx context.Context, id int32,
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -1235,7 +1210,7 @@ func (a *SharingApiService) NamespacesIdUsersGet(ctx context.Context, id int32,
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -1284,7 +1259,6 @@ func (a *SharingApiService) NamespacesIdUsersGet(ctx context.Context, id int32,
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -1311,9 +1285,8 @@ func (a *SharingApiService) NamespacesIdUsersPut(ctx context.Context, id int32,
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -1364,7 +1337,6 @@ func (a *SharingApiService) NamespacesIdUsersPut(ctx context.Context, id int32,
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -1392,7 +1364,6 @@ func (a *SharingApiService) NamespacesNamespaceIDTeamsTeamIDDelete(ctx context.C
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -1443,7 +1414,6 @@ func (a *SharingApiService) NamespacesNamespaceIDTeamsTeamIDDelete(ctx context.C
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -1472,9 +1442,8 @@ func (a *SharingApiService) NamespacesNamespaceIDTeamsTeamIDPost(ctx context.Con
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -1525,7 +1494,6 @@ func (a *SharingApiService) NamespacesNamespaceIDTeamsTeamIDPost(ctx context.Con
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -1553,7 +1521,6 @@ func (a *SharingApiService) NamespacesNamespaceIDUsersUserIDDelete(ctx context.C
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -1604,7 +1571,6 @@ func (a *SharingApiService) NamespacesNamespaceIDUsersUserIDDelete(ctx context.C
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -1633,9 +1599,8 @@ func (a *SharingApiService) NamespacesNamespaceIDUsersUserIDPost(ctx context.Con
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -1686,7 +1651,6 @@ func (a *SharingApiService) NamespacesNamespaceIDUsersUserIDPost(ctx context.Con
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -1712,9 +1676,8 @@ func (a *SharingApiService) SharesShareAuthPost(ctx context.Context, share strin
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -1751,7 +1714,5 @@ func (a *SharingApiService) SharesShareAuthPost(ctx context.Context, share strin
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
|
50
task_api.go
50
task_api.go
|
@ -11,13 +11,13 @@
|
|||
package swagger
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"net/http"
|
||||
"strings"
|
||||
"golang.org/x/net/context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
|
@ -27,7 +27,6 @@ var (
|
|||
|
||||
type TaskApiService service
|
||||
|
||||
|
||||
/* TaskApiService Create a task
|
||||
Inserts a task into a list.
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
|
@ -51,9 +50,8 @@ func (a *TaskApiService) ListsIdPut(ctx context.Context, id int32, task ModelsTa
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -104,7 +102,6 @@ func (a *TaskApiService) ListsIdPut(ctx context.Context, id int32, task ModelsTa
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -166,7 +163,7 @@ func (a *TaskApiService) TasksAllGet(ctx context.Context, localVarOptionals map[
|
|||
localVarQueryParams.Add("enddate", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -215,7 +212,6 @@ func (a *TaskApiService) TasksAllGet(ctx context.Context, localVarOptionals map[
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -240,9 +236,8 @@ func (a *TaskApiService) TasksBulkPost(ctx context.Context, task ModelsBulkTask)
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -293,7 +288,6 @@ func (a *TaskApiService) TasksBulkPost(ctx context.Context, task ModelsBulkTask)
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -321,9 +315,8 @@ func (a *TaskApiService) TasksIdAttachmentsAttachmentIDDelete(ctx context.Contex
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -372,7 +365,6 @@ func (a *TaskApiService) TasksIdAttachmentsAttachmentIDDelete(ctx context.Contex
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -399,7 +391,6 @@ func (a *TaskApiService) TasksIdAttachmentsAttachmentIDGet(ctx context.Context,
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -471,9 +462,8 @@ func (a *TaskApiService) TasksIdAttachmentsGet(ctx context.Context, id int32) ([
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -522,7 +512,6 @@ func (a *TaskApiService) TasksIdAttachmentsGet(ctx context.Context, id int32) ([
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -549,9 +538,8 @@ func (a *TaskApiService) TasksIdAttachmentsPut(ctx context.Context, id int32, fi
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "multipart/form-data", }
|
||||
localVarHttpContentTypes := []string{"multipart/form-data"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -601,7 +589,6 @@ func (a *TaskApiService) TasksIdAttachmentsPut(ctx context.Context, id int32, fi
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -627,7 +614,6 @@ func (a *TaskApiService) TasksIdDelete(ctx context.Context, id int32) (ModelsMes
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -678,7 +664,6 @@ func (a *TaskApiService) TasksIdDelete(ctx context.Context, id int32) (ModelsMes
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -705,9 +690,8 @@ func (a *TaskApiService) TasksIdPost(ctx context.Context, id int32, task ModelsT
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -758,7 +742,6 @@ func (a *TaskApiService) TasksIdPost(ctx context.Context, id int32, task ModelsT
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -784,9 +767,8 @@ func (a *TaskApiService) TasksTaskIDRelationsDelete(ctx context.Context, relatio
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -837,7 +819,6 @@ func (a *TaskApiService) TasksTaskIDRelationsDelete(ctx context.Context, relatio
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -864,9 +845,8 @@ func (a *TaskApiService) TasksTaskIDRelationsPut(ctx context.Context, relation M
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -917,7 +897,5 @@ func (a *TaskApiService) TasksTaskIDRelationsPut(ctx context.Context, relation M
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
|
31
team_api.go
31
team_api.go
|
@ -11,13 +11,13 @@
|
|||
package swagger
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"net/http"
|
||||
"strings"
|
||||
"golang.org/x/net/context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
|
@ -27,7 +27,6 @@ var (
|
|||
|
||||
type TeamApiService service
|
||||
|
||||
|
||||
/* TeamApiService Get teams
|
||||
Returns all teams the current user is part of.
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
|
@ -65,7 +64,7 @@ func (a *TeamApiService) TeamsGet(ctx context.Context, localVarOptionals map[str
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -114,7 +113,6 @@ func (a *TeamApiService) TeamsGet(ctx context.Context, localVarOptionals map[str
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -140,7 +138,6 @@ func (a *TeamApiService) TeamsIdDelete(ctx context.Context, id int32) (ModelsMes
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -191,7 +188,6 @@ func (a *TeamApiService) TeamsIdDelete(ctx context.Context, id int32) (ModelsMes
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -218,9 +214,8 @@ func (a *TeamApiService) TeamsIdMembersPut(ctx context.Context, id int32, team M
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -271,7 +266,6 @@ func (a *TeamApiService) TeamsIdMembersPut(ctx context.Context, id int32, team M
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -299,7 +293,6 @@ func (a *TeamApiService) TeamsIdMembersUserIDDelete(ctx context.Context, id int3
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{}
|
||||
|
||||
|
@ -350,7 +343,6 @@ func (a *TeamApiService) TeamsIdMembersUserIDDelete(ctx context.Context, id int3
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -377,9 +369,8 @@ func (a *TeamApiService) TeamsIdPost(ctx context.Context, id int32, team ModelsT
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -430,7 +421,6 @@ func (a *TeamApiService) TeamsIdPost(ctx context.Context, id int32, team ModelsT
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -455,9 +445,8 @@ func (a *TeamApiService) TeamsPut(ctx context.Context, team ModelsTeam) (ModelsT
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -508,7 +497,5 @@ func (a *TeamApiService) TeamsPut(ctx context.Context, team ModelsTeam) (ModelsT
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
|
43
user_api.go
43
user_api.go
|
@ -11,12 +11,12 @@
|
|||
package swagger
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"net/url"
|
||||
"net/http"
|
||||
"strings"
|
||||
"golang.org/x/net/context"
|
||||
"encoding/json"
|
||||
"golang.org/x/net/context"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Linger please
|
||||
|
@ -26,7 +26,6 @@ var (
|
|||
|
||||
type UserApiService service
|
||||
|
||||
|
||||
/* UserApiService Login
|
||||
Logs a user in. Returns a JWT-Token to authenticate further requests.
|
||||
* @param ctx context.Context for authentication, logging, tracing, etc.
|
||||
|
@ -48,9 +47,8 @@ func (a *UserApiService) LoginPost(ctx context.Context, credentials ModelsUserLo
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -89,7 +87,6 @@ func (a *UserApiService) LoginPost(ctx context.Context, credentials ModelsUserLo
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -114,9 +111,8 @@ func (a *UserApiService) RegisterPost(ctx context.Context, credentials ModelsApi
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -155,7 +151,6 @@ func (a *UserApiService) RegisterPost(ctx context.Context, credentials ModelsApi
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -180,9 +175,8 @@ func (a *UserApiService) UserConfirmPost(ctx context.Context, credentials Models
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -221,7 +215,6 @@ func (a *UserApiService) UserConfirmPost(ctx context.Context, credentials Models
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -245,9 +238,8 @@ func (a *UserApiService) UserGet(ctx context.Context) (ModelsUser, *http.Respon
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -296,7 +288,6 @@ func (a *UserApiService) UserGet(ctx context.Context) (ModelsUser, *http.Respon
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -321,9 +312,8 @@ func (a *UserApiService) UserPasswordPost(ctx context.Context, userPassword V1Us
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -374,7 +364,6 @@ func (a *UserApiService) UserPasswordPost(ctx context.Context, userPassword V1Us
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -399,9 +388,8 @@ func (a *UserApiService) UserPasswordResetPost(ctx context.Context, credentials
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -440,7 +428,6 @@ func (a *UserApiService) UserPasswordResetPost(ctx context.Context, credentials
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -465,9 +452,8 @@ func (a *UserApiService) UserPasswordTokenPost(ctx context.Context, credentials
|
|||
localVarQueryParams := url.Values{}
|
||||
localVarFormParams := url.Values{}
|
||||
|
||||
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -506,7 +492,6 @@ func (a *UserApiService) UserPasswordTokenPost(ctx context.Context, credentials
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
@ -540,7 +525,7 @@ func (a *UserApiService) UsersGet(ctx context.Context, localVarOptionals map[str
|
|||
localVarQueryParams.Add("s", parameterToString(localVarTempParam, ""))
|
||||
}
|
||||
// to determine the Content-Type header
|
||||
localVarHttpContentTypes := []string{ "application/json", }
|
||||
localVarHttpContentTypes := []string{"application/json"}
|
||||
|
||||
// set Content-Type header
|
||||
localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
|
||||
|
@ -589,7 +574,5 @@ func (a *UserApiService) UsersGet(ctx context.Context, localVarOptionals map[str
|
|||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
||||
return successPayload, localVarHttpResponse, err
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,5 @@
|
|||
package swagger
|
||||
|
||||
type V1Token struct {
|
||||
|
||||
Token string `json:"token,omitempty"`
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
package swagger
|
||||
|
||||
type V1UserPassword struct {
|
||||
|
||||
NewPassword string `json:"new_password,omitempty"`
|
||||
|
||||
OldPassword string `json:"old_password,omitempty"`
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
package swagger
|
||||
|
||||
type V1VikunjaInfos struct {
|
||||
|
||||
FrontendUrl string `json:"frontend_url,omitempty"`
|
||||
|
||||
LinkSharingEnabled bool `json:"link_sharing_enabled,omitempty"`
|
||||
|
|
Reference in New Issue