List annotation threads for a published post.
curl --request GET \
--url https://api.nebyoulous.space/public/posts/{slug}/annotation-threadsconst options = {method: 'GET'};
fetch('https://api.nebyoulous.space/public/posts/{slug}/annotation-threads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.nebyoulous.space/public/posts/{slug}/annotation-threads"
response = requests.get(url)
print(response.text){
"threads": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"postId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"body": "<string>",
"mentions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
}
],
"anchor": {
"x": 123,
"y": 123,
"width": 123,
"height": 123
},
"resolvedAt": "<string>",
"resolvedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"replies": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"threadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"body": "<string>",
"mentions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Comments and annotations
List annotation threads for a published post.
GET
/
public
/
posts
/
{slug}
/
annotation-threads
List annotation threads for a published post.
curl --request GET \
--url https://api.nebyoulous.space/public/posts/{slug}/annotation-threadsconst options = {method: 'GET'};
fetch('https://api.nebyoulous.space/public/posts/{slug}/annotation-threads', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.nebyoulous.space/public/posts/{slug}/annotation-threads"
response = requests.get(url)
print(response.text){
"threads": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"postId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"body": "<string>",
"mentions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
}
],
"anchor": {
"x": 123,
"y": 123,
"width": 123,
"height": 123
},
"resolvedAt": "<string>",
"resolvedBy": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"createdAt": "<string>",
"updatedAt": "<string>",
"replies": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"threadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"authorId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"author": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
},
"body": "<string>",
"mentions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"username": "<string>",
"name": "<string>",
"image": "<string>"
}
],
"createdAt": "<string>",
"updatedAt": "<string>"
}
]
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}