Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10934

RESTv2 HEAD on cache name

    XMLWordPrintable

Details

    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

      Attachments

        Activity

          People

            gfernand@redhat.com Gustavo Fernandes (Inactive)
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: