{
  "opencollection": "1.0.0",
  "info": {
    "name": "Certifyos Template API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Template",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get list of templates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:9000/templates",
            "headers": [
              {
                "name": "tenant-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Page number for pagination"
              },
              {
                "name": "size",
                "value": "",
                "type": "query",
                "description": "Page size for pagination"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by template status"
              },
              {
                "name": "templateName",
                "value": "",
                "type": "query",
                "description": "Filter by template name"
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Filter by template type"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve paginated and filtered list of templates"
        },
        {
          "info": {
            "name": "Process and upload a template",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:9000/templates",
            "headers": [
              {
                "name": "tenant-id",
                "value": ""
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "name",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "type",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "description",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Uploads a new template file with metadata for processing"
        },
        {
          "info": {
            "name": "Process and upload a template in single step",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "http://localhost:9000/templates/single-step",
            "headers": [
              {
                "name": "tenant-id",
                "value": ""
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "name",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "type",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "description",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Uploads a new template file with metadata for processing"
        },
        {
          "info": {
            "name": "Get template by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "http://localhost:9000/templates/:id",
            "headers": [
              {
                "name": "tenant-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Template ID to fetch"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetch template details by template ID"
        },
        {
          "info": {
            "name": "Update an existing template",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://localhost:9000/templates/:id",
            "headers": [
              {
                "name": "tenant-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Template ID to update"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update the template details by template ID"
        },
        {
          "info": {
            "name": "Delete a template",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "http://localhost:9000/templates/:id",
            "headers": [
              {
                "name": "tenant-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Template ID to delete"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Deletes a template by template ID"
        },
        {
          "info": {
            "name": "Approve a template",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "http://localhost:9000/templates/:id/approve",
            "headers": [
              {
                "name": "tenant-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Template ID to approve"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Approve the template specified by ID"
        },
        {
          "info": {
            "name": "Partially update an existing template",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "http://localhost:9000/templates/:id/single-step",
            "headers": [
              {
                "name": "tenant-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Template ID to update"
              }
            ],
            "body": {
              "type": "multipart-form",
              "data": [
                {
                  "name": "name",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "type",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "description",
                  "type": "text",
                  "value": ""
                },
                {
                  "name": "file",
                  "type": "text",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Partially updates an existing template. Only provided fields (name, description, type, file) will be updated. If file is provided, CSV validation and schema generation will be performed."
        }
      ]
    }
  ],
  "bundled": true
}