> ## Documentation Index
> Fetch the complete documentation index at: https://docs.followw.app/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.



## OpenAPI

````yaml /mintlify/openapi.json get /classrooms/{classroom_id}/posts/{post_id}
openapi: 3.1.0
info:
  title: Followw UnB API
  description: >-
    Cliente alternativo e open-source para o ecossistema de sistemas da
    Universidade de Brasília (UnB). Agrega em uma experiência unificada e
    performática dados do SIGAA, Restaurante Universitário (RU) e calendário
    oficial, com autenticação stateless delegada ao CAS da UnB, credenciais
    cifradas em cookies JWE (AES-256-GCM), sincronização assíncrona inteligente
    e cache resiliente via Stale-While-Revalidate.
  version: 0.1.0
servers:
  - url: https://api.followw.app
    description: Produção
  - url: http://localhost:8000
    description: Desenvolvimento local
security: []
tags:
  - name: Auth
    description: >-
      Autenticação via SIGAA/CAS da UnB e gerenciamento de sessão stateless por
      cookies.
  - name: Classrooms
    description: >-
      Turmas do semestre e histórico, participantes, frequência e estatísticas
      de aprovação.
  - name: Me
    description: >-
      Perfil acadêmico, extrato/saldo do RU e carteirinha do estudante
      autenticado.
  - name: Public Classrooms
    description: Busca pública de turmas e unidades do SIGAA, sem autenticação.
    x-displayName: Classrooms
  - name: Public Courses
    description: >-
      Cursos cadastrados e seus currículos por semestre de ingresso, sem
      autenticação.
    x-displayName: Courses
  - name: Public Professors
    description: Catálogo público de docentes do SIGAA, sem autenticação.
    x-displayName: Professors
  - name: Public Restaurant
    description: Cardápio público do RU, sem autenticação.
    x-displayName: Restaurant
  - name: Public Subjects
    description: Componentes curriculares de graduação e suas turmas, sem autenticação.
    x-displayName: Subjects
  - name: Posts
    description: >-
      Notícias e avaliações recentes das turmas, consultadas diretamente na home
      do SIGAA.
paths:
  /classrooms/{classroom_id}/posts/{post_id}:
    get:
      tags:
        - Classrooms
      summary: Consultar um post da turma
      description: >-
        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.
      operationId: get_classroom_post_classrooms__classroom_id__posts__post_id__get
      parameters:
        - name: classroom_id
          in: path
          required: true
          schema:
            type: string
            description: Classroom.id ou Classroom.sigaa_id.
            title: Classroom Id
          description: Classroom.id ou Classroom.sigaa_id.
        - name: post_id
          in: path
          required: true
          schema:
            type: string
            pattern: >-
              ^(news:[1-9][0-9]*|assessment:[1-9][0-9]*|topic:[a-f0-9]{64}|material:[a-f0-9]{64})$
            description: ID do post na listagem da turma.
            title: Post Id
          description: ID do post na listagem da turma.
        - name: Cache-Control
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              `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).
            title: Cache-Control
          description: >-
            `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).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassroomPost'
        '401':
          description: Credenciais ausentes ou inválidas.
        '404':
          description: Turma ou post não encontrado.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: SIGAA indisponível.
        '503':
          description: Cache em atualização.
        '504':
          description: Post ainda não disponível no cache.
components:
  schemas:
    ClassroomPost:
      properties:
        id:
          type: string
          title: Id
        type:
          $ref: '#/components/schemas/PostType'
        sigaa_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Sigaa Id
        classroom_sigaa_id:
          anyOf:
            - type: integer
            - type: 'null'
          title: Classroom Sigaa Id
        topic_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Topic Id
        title:
          type: string
          title: Title
        content:
          anyOf:
            - type: string
            - type: 'null'
          title: Content
        published_on:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Published On
        published_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Published At
        starts_on:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Starts On
        ends_on:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Ends On
        starts_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Starts At
        time_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Time Label
        url:
          anyOf:
            - type: string
            - type: 'null'
          title: Url
        attachments:
          items:
            $ref: '#/components/schemas/NewsAttachment'
          type: array
          title: Attachments
          default: []
      type: object
      required:
        - id
        - type
        - title
      title: ClassroomPost
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PostType:
      type: string
      enum:
        - news
        - topic
        - material
        - assessment
      title: PostType
    NewsAttachment:
      properties:
        name:
          type: string
          title: Name
        url:
          type: string
          title: Url
      type: object
      required:
        - name
        - url
      title: NewsAttachment
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.