Accept URL parameters map from all GET resources methods

未关闭
#321 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
java
领域
api

调研方向

从 resourceByAssetID 入口点开始,跟踪其他 GET 资源方法如何处理选项。检查现有的请求构建测试(如果有),并通过确认生成的资源 URL 中出现 colors=true 选项且不破坏现有参数来验证完成情况。

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Java
星标
176
派生
113
平均合并
9 天 20 小时
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cloudinary/cloudinary_java 的其他 Issue

查看 cloudinary/cloudinary_java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。