Search
For the purpose of this test, we have create one text note with one sub-page:
Response: HTTP 200, application/json (Hide)
GET /projects/1/notes/1
Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
{ "single": { "id": 1, "class": "Note", "url_path": "\/projects\/1\/notes\/1", "name": "Montenegro Visit", "comments_count": 0, "attachments": [], "is_trashed": false, "trashed_on": null, "trashed_by_id": 0, "project_id": 1, "is_hidden_from_clients": false, "body": "Stay in Kosanica, climb the Bobotov Kuk on Durmitor", "body_formatted": "Stay in Kosanica, climb the Bobotov Kuk on Durmitor", "body_plain_text": "Stay in Kosanica, climb the Bobotov Kuk on Durmitor", "created_on": 1430164234, "created_by_id": 1, "updated_on": 1430164234, "updated_by_id": 1, "note_id": 0, "is_subnote": false, "subnotes_count": 1, "is_in_collection": true, "position": 0, "contributor_ids": [ 1 ] }, "subscribers": [ 1 ], "comments": [], "subnotes": [ { "id": 2, "class": "Note", "url_path": "\/projects\/1\/notes\/2", "name": "Visit Nepal", "comments_count": 0, "attachments": [], "is_trashed": false, "trashed_on": null, "trashed_by_id": 0, "project_id": 1, "is_hidden_from_clients": true, "body": "First stop, Kathmandu, then go for a walk through Everest Valley and climb the Island Peak", "body_formatted": "First stop, Kathmandu, then go for a walk through Everest Valley and climb the Island Peak", "body_plain_text": "First stop, Kathmandu, then go for a walk through Everest Valley and climb the Island Peak", "created_on": 1430164234, "created_by_id": 1, "updated_on": 1430164234, "updated_by_id": 1, "note_id": 1, "is_subnote": true, "subnotes_count": 0, "is_in_collection": true, "position": 1, "contributor_ids": [ 1 ] } ] }
Lets search for a term that is in the main note:
Now lets search for a term that is in the sub-page: