Bynder / bynder-java-sdk

SDK in Java for integration with Bynder
MIT License
4 stars 24 forks source link

Implement Issue #107 - add properties "options" and "id" to class Met… #109

Closed colinmanning closed 1 year ago

colinmanning commented 1 year ago

Implement Issue #107 - add properties "options" and "id" to class MetapropertiesQuery to support getting all metaproperties without options and retrieving individual metaproperties (with options if needed).

This is needed because getting al metadataproperties with options, as is the only possible way in the SDK, can result in an API timeout of very large number of options exist on some metaproperties (e.g. complex taxonomies).

colinmanning commented 1 year ago

Note in integration testing I see the method setId() on MetapropertyQuery breaks the API, as using "id" returns a single JSON object, and the API expects a Map. By changing to using "ids" and introducing a methig setIds() instead it should work. I am doing this and will push a fix when tested.