{
  "opencollection": "1.0.0",
  "info": {
    "name": "Opik REST Reports API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Reports",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Complete report generation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:5173/api/v1/private/projects/:projectId/reports/:reportId/complete",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path"
              },
              {
                "name": "reportId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Callback from Ollie to update report status and content after generation."
        },
        {
          "info": {
            "name": "Trigger report generation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:5173/api/v1/private/projects/:projectId/reports/generate",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Creates a pending report and triggers asynchronous generation via the orchestrator."
        },
        {
          "info": {
            "name": "Get report preferences",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5173/api/v1/private/projects/:projectId/reports/preferences",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns report preferences for a project, or null if none have been set."
        },
        {
          "info": {
            "name": "Update report preferences",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://localhost:5173/api/v1/private/projects/:projectId/reports/preferences",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Enable or disable daily report generation for a project."
        },
        {
          "info": {
            "name": "Get reports for a project",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:5173/api/v1/private/projects/:projectId/reports",
            "params": [
              {
                "name": "projectId",
                "value": "",
                "type": "path"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "size",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a paginated list of reports, newest first."
        }
      ]
    }
  ],
  "bundled": true
}