Exemple #1
0
func Put(path string, payload, result interface{}) error {
	resp, err := newSession().Put(config.Get("ServerUrl")+path, &payload, &result, nil)
	return checkResponseError(resp, err)
}
Exemple #2
0
func Get(path string, params *napping.Params, result interface{}) error {
	resp, err := newSession().Get(config.Get("ServerUrl")+path, params, &result, nil)
	return checkResponseError(resp, err)
}
Exemple #3
0
func Delete(path string, result interface{}) error {
	resp, err := newSession().Delete(config.Get("ServerUrl")+path, &result, nil)
	return checkResponseError(resp, err)
}