Skip to content

battlebit-org/battle-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

battle-chat

Gamificated Chat

HOW TO

Run infinispan (cache) server

podman run -d -p 11222:11222 -e USER="admin" -e PASS="password" --net=host quay.io/infinispan/server:13.0

Run web service

# dev mode
./mvnw compile quarkus:dev

Creating Caches

POST /rest/v2/caches/{cacheName}

The following "standard" formats are interchangeable:

application/x-java-object

application/octet-stream

application/x-www-form-urlencoded

text/plain

Cache creation example

curl -v -u admin:password --digest -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST http://localhost:11222/rest/v2/caches/character -d "@./conf/character.json"

Get your cache

curl -u admin:password --digest -X GET http://localhost:11222/rest/v2/caches/character

Cache configuration

{
  "distributed-cache": {
    "mode": "SYNC",
    "statistics": true,
    "encoding": {
      "key": {
        "media-type": "application/x-protostream"
      },
      "value": {
        "media-type": "application/x-protostream"
      }
    }
  }
}

Quickstart

podman run -d -p 11222:11222 -e USER="admin" -e PASS="password" --net=host quay.io/infinispan/server:13.0
curl -v -u admin:password --digest -H 'Accept: application/json' -H 'Content-Type: application/json' -X POST http://localhost:11222/rest/v2/caches/character -d "@./conf/character.json"
./mvnw compile quarkus:dev

Releases

No releases published

Packages

No packages published