Home - adelgadorioja/ayuntamiento GitHub Wiki
Bienvenido al ayuntamiento wiki!
Method: GET URL: chat/primera_conexion/
Metodo: GET URL: chat/primera_conexion/ | ||
---|---|---|
REQUEST (entrada plain text) | ||
Parámetro | Valor | Comentario |
id_chat | int | Grupo de chat del que queremos recibir los mensajes |
RESPONSE (JSON) | ||
Parámetro | Valor | Comentario |
mensajes | {"id_msj":8, "contenido":"hola enric", "user_id":1,"id_chat":1, "created_at":"2018-03-06 16:35:25", "updated_at":"2018-03-06 16:35:25", "users":{"id":1,"name":"Alvaro", "email":"[email protected]", "created_at":"2018-03-05 16:55:31", "updated_at":"2018-03-05 16:55:31", "tipoUsuario":0} | devuelve un json con la lista de mensajes, tendrá los mensajes y algún dato del usuario |
GET chat/enviar | ||
---|---|---|
REQUEST (entrada plain text) | ||
Paràmetre | Valor | Comentari |
contenido | string | Contenido del mensaje a enviar |
user_id | number | Identificador del usuario emisor |
id_chat | number | Identificador del chatroom |
RESPONSE (JSON) | ||
Paràmetre | Valor | Comentari |
- | - | - |