Skip to content

Commit

Permalink
change room to group in chat
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jul 20, 2022
1 parent 0e56583 commit 229c092
Show file tree
Hide file tree
Showing 4 changed files with 397 additions and 395 deletions.
70 changes: 35 additions & 35 deletions chat/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,29 @@
"run_check": false,
"request": {
"name": "general",
"description": "The general chat room"
"description": "The general chat group"
},
"response": {
"room": {
"group": {
"id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"name": "general",
"description": "The general chat room",
"description": "The general chat group",
"created_at": "2022-02-17T16:12:43.942557998Z",
"user_ids": [],
"private": false
}
}
}],
"list": [{
"title": "List chat rooms",
"description": "List all the chat rooms",
"title": "List chat groups",
"description": "List all the chat groups",
"run_check": false,
"request": {},
"response": {
"rooms": [{
"groups": [{
"id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"name": "general",
"description": "The general chat room",
"description": "The general chat group",
"created_at": "2022-02-17T16:12:43.942557998Z",
"user_ids": [],
"private": false
Expand All @@ -36,16 +36,16 @@
}],
"delete": [{
"title": "Delete a chat",
"description": "Delete a chat room",
"description": "Delete a chat group",
"run_check": false,
"request": {
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910"
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910"
},
"response": {
"room": {
"group": {
"id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"name": "general",
"description": "The general chat room",
"description": "The general chat group",
"created_at": "2022-02-17T16:12:43.942557998Z",
"user_ids": [],
"private": false
Expand All @@ -54,17 +54,17 @@
}],
"invite": [{
"title": "Invite a user",
"description": "Invite a user to a chat room",
"description": "Invite a user to a chat group",
"run_check": false,
"request": {
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"user_id": "user-1"
},
"response": {
"room": {
"group": {
"id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"name": "general",
"description": "The general chat room",
"description": "The general chat group",
"created_at": "2022-02-17T16:12:43.942557998Z",
"user_ids": ["user-1"],
"private": false
Expand All @@ -73,10 +73,10 @@
}],
"send": [{
"title": "Send a message",
"description": "Send a message to a room",
"description": "Send a message to a group",
"run_check": false,
"request": {
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"user_id": "user-1",
"client": "web",
"subject": "Random",
Expand All @@ -86,7 +86,7 @@
"message": {
"id": "d44c6dc0-89d7-4a36-b528-cfd6c728ccef",
"client": "web",
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"user_id": "user-1",
"sent_at": "2022-02-17T16:18:35.683008885Z",
"subject": "Random",
Expand All @@ -96,16 +96,16 @@
}],
"history": [{
"title": "Get chat history",
"description": "Get chat history for a room",
"description": "Get chat history for a group",
"run_check": false,
"request": {
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910"
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910"
},
"response": {
"messages": [{
"id": "d44c6dc0-89d7-4a36-b528-cfd6c728ccef",
"client": "web",
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"user_id": "user-1",
"sent_at": "2022-02-17T16:18:35.683008885Z",
"subject": "Random",
Expand All @@ -114,18 +114,18 @@
}
}],
"join": [{
"title": "Join a room",
"description": "Join a room",
"title": "Join a group",
"description": "Join a group",
"run_check": false,
"request": {
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"user_id": "user-2"
},
"response": {
"message": {
"id": "d44c6dc0-89d7-4a36-b528-cfd6c728ccef",
"client": "web",
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"user_id": "user-1",
"sent_at": "2022-02-17T16:18:35.683008885Z",
"subject": "Random",
Expand All @@ -134,37 +134,37 @@
}
}],
"kick": [{
"title": "Kick a user from a room",
"description": "Kick a user from a chat room",
"title": "Kick a user from a group",
"description": "Kick a user from a chat group",
"run_check": false,
"request": {
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"user_id": "user-1"
},
"response": {
"room": {
"group": {
"id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"name": "general",
"description": "The general chat room",
"description": "The general chat group",
"created_at": "2022-02-17T16:12:43.942557998Z",
"user_ids": [],
"private": false
}
}
}],
"leave": [{
"title": "Leave a room",
"description": "Leave a chat room",
"title": "Leave a group",
"description": "Leave a chat group",
"run_check": false,
"request": {
"room_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"group_id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"user_id": "user-1"
},
"response": {
"room": {
"group": {
"id": "d8057208-f81a-4e14-ad7f-c29daa2bb910",
"name": "general",
"description": "The general chat room",
"description": "The general chat group",
"created_at": "2022-02-17T16:12:43.942557998Z",
"user_ids": [],
"private": false
Expand Down

0 comments on commit 229c092

Please sign in to comment.