There was an error while loading. Please reload this page.
1 parent 9201e55 commit 18ce079Copy full SHA for 18ce079
1 file changed
server/client_cloud.go
@@ -37,6 +37,9 @@ type cloudCurrentUser struct {
37
// which would need a re-consent from every existing install.
38
const cloudAPIPrefix = "/wiki"
39
40
+// getJSON GETs path relative to the Cloud API base and decodes the JSON
41
+// response body into out. A non-200 response yields an *APIError so callers can
42
+// act on the upstream status.
43
func (c *confluenceCloudClient) getJSON(path string, out interface{}) error {
44
req, err := http.NewRequest(http.MethodGet, c.APIBase+cloudAPIPrefix+path, nil)
45
if err != nil {
0 commit comments