change!: renommer HandleV1DocumentCreate à V1DocumentPOST
BREAKING: renommer `HandleV1DocumentCreate` à `V1DocumentPOST`
This commit is contained in:
parent
d3dc5b1571
commit
9a8a0abe2e
5 changed files with 191 additions and 183 deletions
|
@ -36,8 +36,8 @@ func New(client *http.Client, host, key string, port int, protocol string) (*API
|
|||
return &API{Voki: voki.New(client, host, key, port, protocol)}, nil
|
||||
}
|
||||
|
||||
func (a *API) UploadDocument(bucket string, file_header *multipart.FileHeader) (apiresponse.V1DocumentCreate, error) {
|
||||
var response apiresponse.V1DocumentCreate
|
||||
func (a *API) UploadDocument(bucket string, file_header *multipart.FileHeader) (apiresponse.V1DocumentPOST, error) {
|
||||
var response apiresponse.V1DocumentPOST
|
||||
endpoint := fmt.Sprintf("%s://%s:%d",
|
||||
a.Voki.Protocol,
|
||||
a.Voki.Host,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue