Skip to content

Flow: Record Memo

Yupiiina edited this page Feb 16, 2019 · 23 revisions

Search-Memo

UI Flow

Record

Acceptance Criteria

An audio is recognised by modern browser speech api, it is not necessary to recognise speech via backend.
GET /search/memos See this page for this endpoint's acceptance criteria .
POST /memos When user tap (+) button to create a new memo, the client will send POST request to /memos to create an empty memo. Then the server will respond a 201 Created with an URL to the created memo.

Example Request and Response

POST /memos with an empty body.
Expected Response: 201 Created with url in Location: header to the created memo url. See this page.
Error Response:

{
  "message": "Cause of the error"
}

PUT /memos/:id with body the same as memo object as describe in this page to update a memo. ** Expected Response** 200 OK

{ 
    "message" : "Updated"
}

Error Response

{
	"message" : "Cause of the error"
}