List notes at a commit
curl --request GET \
--url https://nemonist.com/api/v1/folders/{id}/tree \
--header 'Authorization: Bearer <token>'import requests
url = "https://nemonist.com/api/v1/folders/{id}/tree"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://nemonist.com/api/v1/folders/{id}/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"commit": "<string>",
"tree": [
{
"path": "<string>",
"about": "<string>",
"rebuilt": true,
"size": 123,
"words": 123,
"lastCommit": {
"id": "<string>",
"at": "<string>",
"message": "<string>",
"author": "<string>",
"html_url": "<string>"
},
"contents_url": "<string>",
"html_url": "<string>"
}
],
"uncertain": [
{
"path": "<string>",
"oldest": "<string>"
}
],
"at": "<string>",
"message": "<string>",
"html_url": "<string>"
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Folders
List notes at a commit
Every note as a commit left the folder, as git ls-tree -r <commit> and GitHub's Browse files; without at, today. Each entry is the note's newest kept edit at or before that commit: its size then and the last commit that touched it. Notes made later, and notes deleted by then, are left out. A version the kept history cannot rebuild says rebuilt false with no size, never a guess; a note whose kept history starts later without its create is listed under uncertain, neither in nor out.
GET
/
folders
/
{id}
/
tree
List notes at a commit
curl --request GET \
--url https://nemonist.com/api/v1/folders/{id}/tree \
--header 'Authorization: Bearer <token>'import requests
url = "https://nemonist.com/api/v1/folders/{id}/tree"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://nemonist.com/api/v1/folders/{id}/tree', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"commit": "<string>",
"tree": [
{
"path": "<string>",
"about": "<string>",
"rebuilt": true,
"size": 123,
"words": 123,
"lastCommit": {
"id": "<string>",
"at": "<string>",
"message": "<string>",
"author": "<string>",
"html_url": "<string>"
},
"contents_url": "<string>",
"html_url": "<string>"
}
],
"uncertain": [
{
"path": "<string>",
"oldest": "<string>"
}
],
"at": "<string>",
"message": "<string>",
"html_url": "<string>"
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}{
"error": {
"message": "<string>",
"code": 123,
"type": "<string>"
}
}Authorizations
Query Parameters
Response
The notes at that commit.
A folder's notes at a commit.