openapi: 3.0.3
info: { title: Integração CNPJA, version: 1.0.0 }
paths:
  /Cnpja/cnpj:
    post:
      summary: Consulta CNPJ via API pública do CNPJA
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required: [cnpj]
              properties: { cnpj: { type: string, example: "12345678000195" } }
      responses: { '200': { description: ok } }
  /Cnpja/cep:
    post:
      summary: Consulta CEP via API pública do CNPJA
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required: [cep]
              properties: { cep: { type: string, example: "01311000" } }
      responses: { '200': { description: ok } }
  /Cnpja/preencher:
    post:
      summary: Prefill de empresa por CNPJ (checa existência no contrato)
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required: [cnpj, id_contrato]
              properties:
                cnpj: { type: string }
                id_contrato: { type: integer }
      responses: { '200': { description: ok } }
