Consultar um post da turma
curl --request GET \
--url https://api.followw.app/classrooms/{classroom_id}/posts/{post_id}import requests
url = "https://api.followw.app/classrooms/{classroom_id}/posts/{post_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.followw.app/classrooms/{classroom_id}/posts/{post_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"type": "news",
"title": "<string>",
"sigaa_id": "<string>",
"classroom_sigaa_id": 123,
"topic_id": "<string>",
"content": "<string>",
"published_on": "2023-12-25",
"published_at": "2023-11-07T05:31:56Z",
"starts_on": "2023-12-25",
"ends_on": "2023-12-25",
"starts_at": "2023-11-07T05:31:56Z",
"time_label": "<string>",
"url": "<string>",
"attachments": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Classrooms
Consultar um post da turma
Use o id retornado na listagem. Notícias trazem texto em Markdown e anexos, salvos sob demanda; no-cache força revalidação. Avaliações não incluem notas individuais.
GET
/
classrooms
/
{classroom_id}
/
posts
/
{post_id}
Consultar um post da turma
curl --request GET \
--url https://api.followw.app/classrooms/{classroom_id}/posts/{post_id}import requests
url = "https://api.followw.app/classrooms/{classroom_id}/posts/{post_id}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.followw.app/classrooms/{classroom_id}/posts/{post_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"type": "news",
"title": "<string>",
"sigaa_id": "<string>",
"classroom_sigaa_id": 123,
"topic_id": "<string>",
"content": "<string>",
"published_on": "2023-12-25",
"published_at": "2023-11-07T05:31:56Z",
"starts_on": "2023-12-25",
"ends_on": "2023-12-25",
"starts_at": "2023-11-07T05:31:56Z",
"time_label": "<string>",
"url": "<string>",
"attachments": []
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
no-cache (ou max-age=0) busca na origem antes de responder; max-age=N aceita cache de até N s; stale-if-error[=N] devolve o cache se a origem falhar; only-if-cached nunca busca (504 sem cache).
Path Parameters
Classroom.id ou Classroom.sigaa_id.
ID do post na listagem da turma.
Pattern:
^(news:[1-9][0-9]*|assessment:[1-9][0-9]*|topic:[a-f0-9]{64}|material:[a-f0-9]{64})$Response
Successful Response
Available options:
news, topic, material, assessment Show child attributes
Show child attributes