You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: client-challenge/server/readme.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,12 +46,15 @@ chats, and read & write messages.
46
46
47
47
### Endpoints
48
48
49
-
-`GET /events?stream=messages`: an [SSE](https://en.wikipedia.org/wiki/Server-sent_events) stream that sends you `Message` entities as they are ingested by the server
49
+
-`GET /events?stream=messages`: an
50
+
[SSE](https://en.wikipedia.org/wiki/Server-sent_events) stream that sends you
51
+
`Message` entities as they are ingested by the server
50
52
-`GET /chats`: returns a list of all `Chat` entities
51
-
-`GET /chats/{chat_id}/messages`: returns a list of the 100 most recent `Message` entities in a chat
52
-
-`POST /chats/{chat_id}/messages`: send a new message in a chat and returns
53
-
the newly created `Message` entity. It expects a JSON payload of the form: `{ "text":
54
-
"..." }`
53
+
-`GET /chats/{chat_id}/messages`: returns a list of the 100 most recent
54
+
`Message` entities in a chat
55
+
-`POST /chats/{chat_id}/messages`: send a new message in a chat and returns the
56
+
newly created `Message` entity. It expects a JSON payload of the form: `{
0 commit comments