Chatea with volumes API

Now chatea does not lose messages after rebuild

JSON Documentation

Method: addRoom

https://json.smappi.org/milash/chatea-with-volumes/addRoom?roomname=<string>

Create new room

addRoom("room1")
  // => true

Live Example

Request:
https://json.smappi.org/milash/chatea-with-volumes/addRoom?roomname=example
Response:
Internal Server Error

Method: getRooms

https://json.smappi.org/milash/chatea-with-volumes/getRooms

Get list of rooms

addRoom("room1")
  addRoom("room2")
  getRooms()
  // => [{"name":"room1"}, {"name":"room2"}]

Live Example

Request:
https://json.smappi.org/milash/chatea-with-volumes/getRooms
Response:
Internal Server Error

Method: getRoom

https://json.smappi.org/milash/chatea-with-volumes/getRoom?roomname=<string>

Get ROOM with items

(function () { let i = getRoom("room1"); delete i.created_at; return i; })()
  // => {[]}

Live Example

Request:
https://json.smappi.org/milash/chatea-with-volumes/getRoom?roomname=example
Response:
Internal Server Error

Method: addItem

https://json.smappi.org/milash/chatea-with-volumes/addItem?roomname=<string>&nickname=<string>&message=<string>

Add item to room

(function () { let i = addItem("room1", "adw0rd", "test"); delete i.at; return i; })()
  // => {nickname: "adw0rd", "message": "test"}
  addItem("roomX", "adw0rd", "test")
  // => false

Live Example

Request:
https://json.smappi.org/milash/chatea-with-volumes/addItem?roomname=example&nickname=example&message=example
Response:
Internal Server Error

XML Documentation

Method: addRoom

https://xml.smappi.org/milash/chatea-with-volumes/addRoom?roomname=<string>

Create new room

addRoom("room1")
  // => true

Live Example

Request:
https://xml.smappi.org/milash/chatea-with-volumes/addRoom?roomname=example
Response:
Internal Server Error

Method: getRooms

https://xml.smappi.org/milash/chatea-with-volumes/getRooms

Get list of rooms

addRoom("room1")
  addRoom("room2")
  getRooms()
  // => [{"name":"room1"}, {"name":"room2"}]

Live Example

Request:
https://xml.smappi.org/milash/chatea-with-volumes/getRooms
Response:
Internal Server Error

Method: getRoom

https://xml.smappi.org/milash/chatea-with-volumes/getRoom?roomname=<string>

Get ROOM with items

(function () { let i = getRoom("room1"); delete i.created_at; return i; })()
  // => {[]}

Live Example

Request:
https://xml.smappi.org/milash/chatea-with-volumes/getRoom?roomname=example
Response:
Internal Server Error

Method: addItem

https://xml.smappi.org/milash/chatea-with-volumes/addItem?roomname=<string>&nickname=<string>&message=<string>

Add item to room

(function () { let i = addItem("room1", "adw0rd", "test"); delete i.at; return i; })()
  // => {nickname: "adw0rd", "message": "test"}
  addItem("roomX", "adw0rd", "test")
  // => false

Live Example

Request:
https://xml.smappi.org/milash/chatea-with-volumes/addItem?roomname=example&nickname=example&message=example
Response:
Internal Server Error

SOAP Documentation (coming soon)

WSDL-Scheme here...

Method: addRoom

https://soap.smappi.org/milash/chatea-with-volumes/addRoom?roomname=<string>

Create new room

addRoom("room1")
  // => true

Live Example

Request:
https://soap.smappi.org/milash/chatea-with-volumes/addRoom?roomname=example
Response:
Internal Server Error

Method: getRooms

https://soap.smappi.org/milash/chatea-with-volumes/getRooms

Get list of rooms

addRoom("room1")
  addRoom("room2")
  getRooms()
  // => [{"name":"room1"}, {"name":"room2"}]

Live Example

Request:
https://soap.smappi.org/milash/chatea-with-volumes/getRooms
Response:
Internal Server Error

Method: getRoom

https://soap.smappi.org/milash/chatea-with-volumes/getRoom?roomname=<string>

Get ROOM with items

(function () { let i = getRoom("room1"); delete i.created_at; return i; })()
  // => {[]}

Live Example

Request:
https://soap.smappi.org/milash/chatea-with-volumes/getRoom?roomname=example
Response:
Internal Server Error

Method: addItem

https://soap.smappi.org/milash/chatea-with-volumes/addItem?roomname=<string>&nickname=<string>&message=<string>

Add item to room

(function () { let i = addItem("room1", "adw0rd", "test"); delete i.at; return i; })()
  // => {nickname: "adw0rd", "message": "test"}
  addItem("roomX", "adw0rd", "test")
  // => false

Live Example

Request:
https://soap.smappi.org/milash/chatea-with-volumes/addItem?roomname=example&nickname=example&message=example
Response:
Internal Server Error
[A]
author
[A]
Maintainer

Versions

  • master