Notes

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

Headers

{
    "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

Headers

Request Body

{
    "message": "Success",
    "data": null,
    "version": "v1.2",
    "status": true
}

Add Image Note

POST https://api.habitify.me/notes/addImageNote/:habit_id

Path Parameters

Query Parameters

Headers

Request Body

{
    "message": "Success",
    "data": null,
    "version": "v1.2",
    "status": true
}

Delete Note

DELETE https://api.habitify.me/notes/:habit_id/:note_id

Path Parameters

Headers

{
    "message": "Success",
    "data": null,
    "version": "v1.2",
    "status": true
}

Delete Notes

DELETE https://api.habitify.me/notes/:habit_id

Path Parameters

Headers

Request Body

{
    "message": "Success",
    "data": null,
    "version": "v1.2",
    "status": true
}

Last updated