Files
kapow/internal/client/set.go
Roberto Abdelkader Martínez Pérez 6eb213a545 Adjust set and get to send no Content-Type
2019-10-03 20:57:40 +02:00

16 lines
330 B
Go

package client
import (
"fmt"
"io"
"github.com/BBVA/kapow/internal/http"
)
// TODO: Review spec: Data API > Error responses > 204 Resource Item Not Found should not be 2xx
func SetData(kapowURL, handlerId, path string, r io.Reader) error {
return http.Put(fmt.Sprintf("%s/%s%s", kapowURL, handlerId, path), "", r, nil)
}