openapi: 3.0.3
info: { title: Cron dinâmico, version: 1.0.0 }
paths:
  /Cron/list:
    post: { summary: Lista tarefas registradas, responses: { '200': { description: ok } } }
  /Cron/run:
    post:
      summary: Executa tarefas "due"
      requestBody:
        content:
          application/json:
            schema: { type: object, properties: { id_contrato: { type: integer } } }
      responses: { '200': { description: ok } }
  /Cron/force:
    post:
      summary: Força execução de uma tarefa
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required: [id]
              properties:
                id: { type: string }
                id_contrato: { type: integer }
      responses: { '200': { description: ok } }
  /Cron/enable:
    post:
      summary: Liga/Desliga uma tarefa
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required: [id, enabled]
              properties:
                id: { type: string }
                enabled: { type: boolean }
      responses: { '200': { description: ok } }
