Request :
- Method : POST
- Endpoint :
/api/notes - Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"title" : "string",
"body" : "string",
"tags" : "array"
}Response :
{
"code" : "number",
"status" : "string",
"data" : {
"id" : "string or uuid, unique",
"title" : "string",
"slug" : "string",
"body" : "array",
"tags" : "string",
"createdAt" : "unix-timestamp",
"updatedAt" : "unix-timestamp",
"deletedAt" : "unix-timestamp",
}
}Request :
- Method : GET
- Endpoint :
/api/notes/{note_id} - Header :
- Accept: application/json
Response :
{
"code" : "number",
"status" : "string",
"data" : {
"id" : "string or uuid, unique",
"title" : "string",
"body" : "string",
"tags" : "array",
"createdAt" : "unix-timestamp",
"updatedAt" : "unix-timestamp",
"deletedAt" : "unix-timestamp",
}
}Request :
- Method : PATCH
- Endpoint :
/api/notes/{id_note} - Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"title" : "string",
"body" : "string"
"tags" : "array",
}Response :
{
"code" : "number",
"status" : "string",
"data" : {
"id" : "string or uuid, unique",
"title" : "string",
"body" : "string",
"tags" : "array",
"createdAt" : "unix-timestamp",
"updatedAt" : "unix-timestamp",
"deletedAt" : "unix-timestamp"
}
}Request :
- Method : GET
- Endpoint :
/api/notes - Header :
- Accept: application/json
- Query Param :
- size : number,
- page : number
Response :
{
"code" : "number",
"status" : "string",
"data" : [
{
"id" : "string or uuid, unique",
"title" : "string",
"body" : "string",
"tags" : "array",
"createdAt" : "unix-timestamp",
"updatedAt" : "unix-timestamp",
"deletdAt" : "unix-timestmap"
},
{
"id" : "string or uuid, unique",
"title" : "string",
"body" : "string",
"tags" : "array",
"createdAt" : "unix-timestamp",
"updatedAt" : "unix-timestamp",
"deletdAt" : "unix-timestmap"
}
]
}Request :
- Method : DELETE
- Endpoint :
/api/notes/{id_note} - Header :
- Accept: application/json
Response :
{
"code" : "number",
"status" : "string",
"message" : "string"
}Request :
- Method : DELETE
- Endpoint :
/api/notes/{id_note}/restore - Header :
- Accept: application/json
Response :
{
"code" : "number",
"status" : "string",
"message" : "string"
}Request :
- Method : DELETE
- Endpoint :
/api/notes/{id_note}/forceDelete - Header :
- Accept: application/json
Response :
{
"code" : "number",
"status" : "string",
"message" : "string"
}