Details
-
Bug
-
Resolution: Done
-
Major
-
10.0.1.Final
-
None
Description
Checking whether a cache is already defined can be done several ways: One way is to get the list of caches and see if the cache is there. Although it works, it requires the client to parse the list...etc. Another way is to call:
HEAD rest/v2/caches/{cache_name}?action=config
This works, but it shouldn't be necessary to add ?action=config to find out if the cache is defined or not. The following should be possible:
HEAD rest/v2/caches/{cache_name}
Currently that returns 400