Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use v1 content image API (2024.09.0) #304

Open
aronatkins opened this issue Sep 9, 2024 · 0 comments · May be fixed by #303
Open

use v1 content image API (2024.09.0) #304

aronatkins opened this issue Sep 9, 2024 · 0 comments · May be fixed by #303
Assignees

Comments

@aronatkins
Copy link
Contributor

The Connect 2024.09.0 release publicizes content image endpoints.

  • GET /content/{guid}/__thumbnail__
  • PUT /__api__/v1/content/:guid/thumbnail
  • DELETE /__api__/v1/content/:guid/thumbnail

The connectapi functions to get, set, and delete content images need to prefer these public API paths.

connectapi/R/deploy.R

Lines 423 to 426 in bfefb00

res <- con$GET(
unversioned_url("applications", guid, "image"),
parser = NULL
)

res <- con$GET(unversioned_url("applications", guid, "image"), parser = NULL)

connectapi/R/deploy.R

Lines 509 to 512 in bfefb00

res <- con$POST(
path = unversioned_url("applications", guid, "image"),
body = httr::upload_file(path)
)

res <- con$DELETE(unversioned_url("applications", guid, "image"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants