Skip to content

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 
             } 
           ] 
}
Clone this wiki locally