cloudinary / cloudinary/cloudinary_java

Accept URL parameters map from all GET resources methods

Đang mở
#321 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
175
Fork
113
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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.
```java
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](https://cloudinary.com/documentation/admin_api#get_details_of_a_single_resource_by_asset_id) 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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.