(path string, payload interface{}, mimeType string)
| 472 | } |
| 473 | |
| 474 | func (c *simpleClient) PostJSONPreview(path string, payload interface{}, mimeType string) (*simpleResponse, error) { |
| 475 | return c.jsonRequest("POST", path, payload, func(req *http.Request) { |
| 476 | req.Header.Set("Accept", mimeType) |
| 477 | }) |
| 478 | } |
| 479 | |
| 480 | func (c *simpleClient) PatchJSON(path string, payload interface{}) (*simpleResponse, error) { |
| 481 | return c.jsonRequest("PATCH", path, payload, nil) |
no test coverage detected