]
Tristan Tarrant updated ISPN-10934:
-----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 10.1.0.Beta1
Resolution: Done
RESTv2 HEAD on cache name
-------------------------
Key: ISPN-10934
URL:
https://issues.jboss.org/browse/ISPN-10934
Project: Infinispan
Issue Type: Bug
Components: JMX, reporting and management
Affects Versions: 10.0.1.Final
Reporter: Galder ZamarreƱo
Assignee: Gustavo Fernandes
Priority: Major
Fix For: 10.1.0.Beta1
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:
{code}
HEAD rest/v2/caches/{cache_name}?action=config
{code}
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:
{code}
HEAD rest/v2/caches/{cache_name}
{code}
Currently that returns {{400}}