Properties
This table describes all properties of a Note object.
List Notes
GET
https://api.habitify.me/notes/:habit_id
Get all notes of the habit
Path Parameters
Query Parameters
200 An array of Note object.
Copy {
"message" : "Success" ,
"data" : [
{
"id" : "-MakqEWlb6c6D7WOdPj6" ,
"content" : "Today is the first day of my journey" ,
"created_date" : "2021-05-28T09:40:53" ,
"image_url" : null ,
"note_type" : 1 ,
"habit_id" : "94E9E907-81DB-4838-89BD-FECE283C6B10"
}
] ,
"version" : "v1.2" ,
"status" : true
}
Add Text Note
POST
https://api.habitify.me/notes/:habit_id
Append new note for specific habit
Path Parameters
Request Body
200 402 You've reached the limits. Please upgrade the premium to enjoy unlimited usage.
Copy {
"message": "Success",
"data": null,
"version": "v1.2",
"status": true
}
Account Upgrade Required
Copy {
"message" : "Upgrade to Premium to enjoy unlimited usage" ,
"data" : null ,
"version" : "v1.2" ,
"status" : false
}
Add Image Note
POST
https://api.habitify.me/notes/addImageNote/:habit_id
Path Parameters
Query Parameters
Request Body
200 Success 402 You've reached the limits. Please upgrade the premium to enjoy unlimited usage. 500 Wrong format image or the size of the image is over 2MB
Copy {
"message": "Success",
"data": null,
"version": "v1.2",
"status": true
}
Copy {
"message": "Upgrade to Premium to enjoy unlimited usage",
"data": null,
"version": "v1.2",
"status": false
}
Copy // Wrong format
{
"message": "Only support JPEG/JPG type",
"data": null,
"version": "v1.2",
"status": false
}
// Size over 2MB
{
"message": "The maxium size of the image is 2MB",
"data": null,
"version": "v1.2",
"status": false
}
Delete Note
DELETE
https://api.habitify.me/notes/:habit_id/:note_id
Path Parameters
200 Note deleted
Copy {
"message": "Success",
"data": null,
"version": "v1.2",
"status": true
}
Delete Notes
DELETE
https://api.habitify.me/notes/:habit_id
Path Parameters
Request Body
200
Copy {
"message": "Success",
"data": null,
"version": "v1.2",
"status": true
}