GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Accept URL parameters map from all GET resources methods · Issue #321 · cloudinary/cloudinary_java

Accept URL parameters map from all GET resources methods #321

New issue
Copy link
New issue
Copy link
Open
Open
Accept URL parameters map from all GET resources methods#321
Copy link

Description

@mattia-consiglio
mattia-consiglio
opened on May 24, 2024
Issue body actions

Feature request for Cloudinary Java SDK

accept URL parameters map from all GET resources methods, or at least use the options as parameters.

Explain your use case

I.e., executing the following, I expect the request URL to be https://api.cloudinary.com/v1_1/dqayns3d7/resources/85673c8286be9af8e0a1aee250035460?colors=true, but it isn't.

ApiResponse apiResponse = cloudinary.api().resourceByAssetID("85673c8286be9af8e0a1aee250035460?colors=true", ObjectUtils.asMap(
    "colors", true
));

I also noticed that the only keys added as parameters are "tags", "context", "moderations", that in the documentation are not even valid parameters.

Describe the problem you’re trying to solve

No way to add optional URL parameters to the request URL.

Do you have a proposed solution?

Yes. Pass all options object as parameters, the invalid parameters are already ignored by the API (I tested it on Postman). Or, for a finer job, add only the allowed parameters.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.