You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use certain Web API as the source of my background pictures. (I want to use SingleEach mode with Web API - I hope this is possible!)
This API has an endpoint to get all image IDs or hashes in arrays.
Then, a separate endpoint URL has to be made with an ID or hash.
What is currently possible with ClaudiaIDE:
API Endpoint is expected to contain download URLs.
URLs are expected to be found under certain JSON key - it is unclear to me whether this key can be an array.
What can be done to enable my use case:
Rename API Endpoint to Image search endpoint;
Make sure JSON Key can understand arrays as well as single values, numbers as well as strings. Consider supporting something like XPath/JSONPath to allow more specific queries;
Add Image download endpoint with a template parameter to substitute values extracted with JSON Key from the search response. Something like http://example.com/api/download_image?id={};
Image download endpoint can be set to just the template placeholder like {} by default to achieve current behavior.
I not change it, because this property mean is not image search url.
Make sure JSON Key can understand arrays as well as single values, numbers as well as strings. Consider supporting something like XPath/JSONPath to allow more specific queries;
I will consider it. However If I implement it even if, I use this property for specific single image url.
Add Image download endpoint with a template parameter to substitute values extracted with JSON Key from the search response. Something like http://example.com/api/download_image?id={};
Image download endpoint can be set to just the template placeholder like {} by default to achieve current behavior.
This feature require is simple behavior. If you want to that spec, you can prepare converter server. Anyway CluaidaIDE's this feature can support api call and use one image url from response.
What I'm trying to achieve:
I want to use certain Web API as the source of my background pictures.
(I want to use
SingleEach
mode with Web API - I hope this is possible!)This API has an endpoint to get all image IDs or hashes in arrays.
Then, a separate endpoint URL has to be made with an ID or hash.
What is currently possible with ClaudiaIDE:
API Endpoint is expected to contain download URLs.
URLs are expected to be found under certain JSON key - it is unclear to me whether this key can be an array.
What can be done to enable my use case:
API Endpoint
toImage search endpoint
;JSON Key
can understand arrays as well as single values, numbers as well as strings. Consider supporting something like XPath/JSONPath to allow more specific queries;Image download endpoint
with a template parameter to substitute values extracted withJSON Key
from the search response. Something likehttp://example.com/api/download_image?id={}
;Image download endpoint
can be set to just the template placeholder like{}
by default to achieve current behavior.Practical example:
The API: https://hydrusnetwork.github.io/hydrus/developer_api.html#searching_and_fetching_files
It can return a response like this:
And then a separate URL have to be made either with ID or a hash.
There is no way to obtain a random image with a single API call as far as I'm aware.
The text was updated successfully, but these errors were encountered: