This content has been marked as final.
Show 1 reply
-
1. Re: Accessing Infinispan REST service
nadirx Apr 4, 2017 2:50 AM (in response to mylos78)There is nothing to see until you put data in the cache.
From the command-line:
# Create an entry "a" which will contain the string "Hello" stored as plain/text echo "Hello" | curl -v -u user:password -X PUT -d @- --header "Content-Type: text/plain" http://localhost:8080/rest/default/a # Retrieve the entry "a" curl -u user:password -o - http://localhost:8080/rest/default/a # List all entries in the default cache curl -u user:password -o - --header 'Accept: text/plain' http://localhost:8080/rest/default # Delete the entry "a" curl -u user:password -X DELETE http://localhost:8080/rest/default/a