Notes
5 routes. Paths are relative to https://api.intersink.com/v1.
- GET/notesList the signed-in user's notes (search)
- POST/notesCreate a note
- GET/notes/{id}Get a single note
- PATCH/notes/{id}Edit a note
- DELETE/notes/{id}Delete a note (returns the deleted note for Undo)
List the signed-in user's notes (search)
GET/notes
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| q | string, query | At most 200 characters. |
| page | number, query | Minimum 1. |
| limit | number, query | Minimum 1. |
Response
200. The payload in data is not described in the spec yet.
Create a note
POST/notes
Needs a signed-in user (Bearer token or access_token cookie).
Request body application/json
| Field | Type | Description |
|---|---|---|
| titlerequired | string | At most 200 characters. |
| body | string | At most 20000 characters. |
Response
201. The payload in data is not described in the spec yet.
Get a single note
GET/notes/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string, path |
Response
200. The payload in data is not described in the spec yet.
Edit a note
PATCH/notes/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string, path |
Request body application/json
| Field | Type | Description |
|---|---|---|
| title | string | At most 200 characters. |
| body | string | At most 20000 characters. |
Response
200. The payload in data is not described in the spec yet.
Delete a note (returns the deleted note for Undo)
DELETE/notes/{id}
Needs a signed-in user (Bearer token or access_token cookie).
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string, path |
Response
200. The payload in data is not described in the spec yet.