generated from csc301-fall-2021/deliverable-documents
-
Notifications
You must be signed in to change notification settings - Fork 0
0 | API: General Rules
Liu Yuxuan edited this page Dec 11, 2021
·
3 revisions
A typical response from the server should have the form:
{
msg: str,
statusCode: int,
entity: Any
}
A Message entity will have the following format:
{
message: {
_id: id,
content: str,
label: str,
}
replies: [
{
_id: id,
content: str,
label: str,
fromMessage: id,
toMessage: id
}
]
}