Files
kapow/internal/client/set.go
pancho horrillo a865ade26a Use string concatenation to compose simple expression
Co-authored-by: Héctor Hurtado <hector.hurtado@bbva.com>
2019-10-04 07:28:08 +02:00

13 lines
299 B
Go

package client
import (
"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(kapowURL+"/"+handlerId+path, "", r, nil)
}