{
  "info": {
    "_postman_id": "omnirago-api-v1",
    "name": "OmniraGO API",
    "description": "Coleção completa da API OmniraGO — plataforma de gestão de licitações públicas.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    { "key": "baseUrl", "value": "https://api.omnirago.com.br", "type": "string" },
    { "key": "token",   "value": "", "type": "string" }
  ],
  "item": [
    {
      "name": "Auth",
      "item": [
        {
          "name": "Login",
          "request": {
            "method": "POST",
            "header": [{ "key": "Content-Type", "value": "application/json" }],
            "url": { "raw": "{{baseUrl}}/api/auth/login", "host": ["{{baseUrl}}"], "path": ["api", "auth", "login"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"usuario@empresa.com\",\n  \"senha\": \"SuaSenha123\"\n}"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Licitações",
      "item": [
        {
          "name": "Listar Licitações",
          "request": {
            "method": "GET",
            "header": [{ "key": "Authorization", "value": "Bearer {{token}}" }],
            "url": { "raw": "{{baseUrl}}/api/licitacoes", "host": ["{{baseUrl}}"], "path": ["api", "licitacoes"] }
          },
          "response": []
        },
        {
          "name": "Obter Licitação por ID",
          "request": {
            "method": "GET",
            "header": [{ "key": "Authorization", "value": "Bearer {{token}}" }],
            "url": {
              "raw": "{{baseUrl}}/api/licitacoes/:id",
              "host": ["{{baseUrl}}"],
              "path": ["api", "licitacoes", ":id"],
              "variable": [{ "key": "id", "value": "00000000-0000-0000-0000-000000000000" }]
            }
          },
          "response": []
        },
        {
          "name": "Criar Licitação",
          "request": {
            "method": "POST",
            "header": [
              { "key": "Authorization", "value": "Bearer {{token}}" },
              { "key": "Content-Type",  "value": "application/json" }
            ],
            "url": { "raw": "{{baseUrl}}/api/licitacoes", "host": ["{{baseUrl}}"], "path": ["api", "licitacoes"] },
            "body": {
              "mode": "raw",
              "raw": "{\n  \"titulo\": \"Pregão Eletrônico nº 001/2026\",\n  \"orgaoId\": \"00000000-0000-0000-0000-000000000000\",\n  \"modalidadeId\": \"00000000-0000-0000-0000-000000000000\",\n  \"numero\": \"001/2026\",\n  \"dataAbertura\": \"2026-07-01T10:00:00\",\n  \"valorEstimado\": 50000.00\n}"
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Contratos",
      "item": [
        {
          "name": "Listar Contratos",
          "request": {
            "method": "GET",
            "header": [{ "key": "Authorization", "value": "Bearer {{token}}" }],
            "url": { "raw": "{{baseUrl}}/api/contratos", "host": ["{{baseUrl}}"], "path": ["api", "contratos"] }
          },
          "response": []
        },
        {
          "name": "Obter Contrato por ID",
          "request": {
            "method": "GET",
            "header": [{ "key": "Authorization", "value": "Bearer {{token}}" }],
            "url": {
              "raw": "{{baseUrl}}/api/contratos/:id",
              "host": ["{{baseUrl}}"],
              "path": ["api", "contratos", ":id"],
              "variable": [{ "key": "id", "value": "00000000-0000-0000-0000-000000000000" }]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Checklist",
      "item": [
        {
          "name": "Checklist de Licitação",
          "request": {
            "method": "GET",
            "header": [{ "key": "Authorization", "value": "Bearer {{token}}" }],
            "url": {
              "raw": "{{baseUrl}}/api/checklist/:licitacaoId",
              "host": ["{{baseUrl}}"],
              "path": ["api", "checklist", ":licitacaoId"],
              "variable": [{ "key": "licitacaoId", "value": "00000000-0000-0000-0000-000000000000" }]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Dashboard",
      "item": [
        {
          "name": "KPIs e Resumo",
          "request": {
            "method": "GET",
            "header": [{ "key": "Authorization", "value": "Bearer {{token}}" }],
            "url": { "raw": "{{baseUrl}}/api/dashboard", "host": ["{{baseUrl}}"], "path": ["api", "dashboard"] }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Órgãos",
      "item": [
        {
          "name": "Listar Órgãos Públicos",
          "request": {
            "method": "GET",
            "header": [{ "key": "Authorization", "value": "Bearer {{token}}" }],
            "url": { "raw": "{{baseUrl}}/api/orgaos", "host": ["{{baseUrl}}"], "path": ["api", "orgaos"] }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Modalidades",
      "item": [
        {
          "name": "Listar Modalidades",
          "request": {
            "method": "GET",
            "header": [{ "key": "Authorization", "value": "Bearer {{token}}" }],
            "url": { "raw": "{{baseUrl}}/api/modalidades", "host": ["{{baseUrl}}"], "path": ["api", "modalidades"] }
          },
          "response": []
        }
      ]
    }
  ]
}
