Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 747 Bytes

File metadata and controls

41 lines (33 loc) · 747 Bytes

get session

GET /{id}

reponse

{
"users": [
    {"name": "Seth", "role":"Wizard"},
    {"name": "Hank", "role":"Warrior"},
    
],
"dialogue": [
    {"user": "system", "msg": "Welcome to the adventure"},
    {"user": "seth", "msg": "I use my magic elixir to grow gigantic"},
    {"user": "system", "msg": "You roll a 3. the elixir back faires and you shrink to half size"}
]
}

add entry

POST /{id}

request

{
    #optional
    "users": [
        {"name": "Seth", "role":"Wizard"},
        {"name": "Hank", "role":"Warrior"},
        
    ],
    {"user": "Hank", "msg": "I pick Seth up and through him at the giant"}
    
}

response

{"You roll a 20. Seth lands on the giant's head. The giant is confused"}