GET /notes
200
GET /notes/:noteId
200
POST /notes
body (optional) [application/json]
field | type | values |
---|---|---|
title | string | |
content | string | |
readPermission | string | owner , signed_in , guest |
writePermission | string | owner , signed_in , guest |
commentPermission | string | disabled , forbidden , owners , signed_in_users , everyone |
permalink | string |
Success Response
201
Title
fieldAs for now, the title of a note is derived from the content, thus the behavior of "title" field may need further explanation.
---\ntitle: abc\n---
), then it will be the title of the note.readPermission
and writePermission
field must be provided at the same time.writePermission
must be stricter than readPermission
field. For example, a signed_in
user readable note, you can set owner
or signed_in
writable permission, but you can't set guest
writable permission for that note.PATCH /notes/:noteId
field | type | values |
---|---|---|
content | string | |
readPermission | string | owner , signed_in , guest |
writePermission | string | owner , signed_in , guest |
permalink | string |
DELETE /notes/:noteId
GET /history
POST /notes/:noteId/upload
file: xxx