Consultar posts de uma turma
curl --request GET \
--url https://api.followw.app/classrooms/{classroom_id}/postsimport requests
url = "https://api.followw.app/classrooms/{classroom_id}/posts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.followw.app/classrooms/{classroom_id}/posts', 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 posts de uma turma
Notícias, tópicos, materiais e agenda de avaliações. Materiais referenciam o tópico por topic_id. Conteúdo de notícias é carregado no detalhe. Cache de 60 minutos nas turmas atuais; posts removidos são preservados.
GET
/
classrooms
/
{classroom_id}
/
posts
Consultar posts de uma turma
curl --request GET \
--url https://api.followw.app/classrooms/{classroom_id}/postsimport requests
url = "https://api.followw.app/classrooms/{classroom_id}/posts"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.followw.app/classrooms/{classroom_id}/posts', 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.
Query Parameters
Filtrar por categoria do post.
Available options:
news, topic, material, assessment Response
Successful Response
Available options:
news, topic, material, assessment Show child attributes
Show child attributes