Galder Zamarreño created ISPN-10934:
---------------------------------------
Summary: 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
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}}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)