Skip to content

Commit ad9a771

Browse files
wip
1 parent b9910e1 commit ad9a771

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

client-challenge/server/readme.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,15 @@ chats, and read & write messages.
4646

4747
### Endpoints
4848

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
5052
- `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: `{
57+
"text": "..." }`
5558

5659
### Entities
5760

0 commit comments

Comments
 (0)