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

Deprecate "{cacheName}/{cacheKey}" endpoints from REST

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • REST
    • None

    Description

      We should deprecate /v2/caches/{cacheName}/{cacheKey} in favour of /v2/caches/{cacheName}/entries/{cacheKey} since this request is stealing all the namespaces below caches/{cacheName}, and it's leading to less RESTful endopints than desired.

      For example, the mutable attributes for caches are currently:

      GET /v2/caches/{cacheName}?action=get-mutableattributes
      GET /v2/caches/{cacheName}?action=get-mutableattributes&attribute-name={attributeName}
      POST /v2/caches/{cacheName}?action=set-mutableattribute&attribute-name={name}&attribute-value={value}
      

      But it could be

      GET   /v2/caches/{cacheName}/attributes
      GET   /v2/caches/{cacheName}/attributes/{attributeName}
      POST /v2/caches/{cacheName}/attributes/{attributeName}
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            gfernand@redhat.com Gustavo Fernandes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: