{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "Reposilite Repository",
    "version" : "3.6.7",
    "description" : "Official public Maven repository powered by Reposilite 💜"
  },
  "paths" : {
    "/api/auth/me" : {
      "get" : {
        "tags" : [ "Auth" ],
        "summary" : "Get token details",
        "description" : "Returns details about the requested token",
        "parameters" : [ {
          "name" : "Authorization",
          "in" : "header",
          "description" : "Name and secret provided as basic auth credentials",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Details about the token for succeeded authentication",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SessionDetails"
                }
              }
            }
          },
          "401" : {
            "description" : "Error message related to the unauthorized access in case of any failure",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/badge/latest/{repository}/{gav}" : {
      "get" : {
        "tags" : [ "Maven", "Badge" ],
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Artifact's repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifacts' GAV",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : { }
      }
    },
    "/api/console/execute" : {
      "post" : {
        "tags" : [ "Cli" ],
        "summary" : "Remote command execution",
        "description" : "Execute command using POST request. The commands are the same as in the console and can be listed using the 'help' command.",
        "parameters" : [ {
          "name" : "Authorization",
          "in" : "header",
          "description" : "Name and secret provided as basic auth credentials",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Status of the executed command",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ExecutionResponse"
                }
              }
            }
          },
          "400" : {
            "description" : "Error message related to the invalid command format (0 < command length < 1024)",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "Error message related to the unauthorized access",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/console/log" : {
      "get" : {
        "tags" : [ "Console" ],
        "description" : "Streams the output of logs through an SSE Connection.",
        "parameters" : [ {
          "name" : "Authorization",
          "in" : "header",
          "description" : "Name and secret provided as basic auth credentials",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Continuously sends out the log as messages under the `log` event. Sends a keepalive ping through comments."
          }
        }
      }
    },
    "/api/console/sock" : {
      "patch" : {
        "tags" : [ "Console" ],
        "responses" : { }
      }
    },
    "/api/maven/details/{repository}/{gav}" : {
      "get" : {
        "tags" : [ "Maven" ],
        "summary" : "Browse the contents of repositories using API",
        "description" : "Get details about the requested file as JSON response",
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "allowEmptyValue" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Returns document (different for directory and file) that describes requested resource",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/FileDetails"
                }
              }
            }
          },
          "401" : {
            "description" : "Returns 401 in case of unauthorized attempt of access to private repository",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404" : {
            "description" : "Returns 404 (for Maven) and frontend (for user) as a response if requested artifact is not in the repository"
          }
        }
      }
    },
    "/api/maven/generate/pom/{repository}/{gav}" : {
      "post" : {
        "tags" : [ "Maven" ],
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "description" : "GroupId, ArtifactId and Version of the stub POM",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/PomDetails"
              }
            }
          },
          "required" : true
        },
        "responses" : { }
      }
    },
    "/api/maven/latest/details/{repository}/{gav}" : {
      "get" : {
        "tags" : [ "Maven" ],
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "allowEmptyValue" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "extension",
          "in" : "query",
          "description" : "Changes extension of matched file (by default matches 'jar'). Pass an empty value to match files without an extension.",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "classifier",
          "in" : "query",
          "description" : "Appends classifier suffix to matched file",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "filter",
          "in" : "query",
          "description" : "Version (prefix) filter to apply",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Details about the given file",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/FileDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/maven/latest/file/{repository}/{gav}" : {
      "get" : {
        "tags" : [ "Maven" ],
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "allowEmptyValue" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "extension",
          "in" : "query",
          "description" : "Changes extension of matched file (by default matches 'jar'). Pass an empty value to match files without an extension.",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "classifier",
          "in" : "query",
          "description" : "Appends classifier suffix to matched file",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "filter",
          "in" : "query",
          "description" : "Version (prefix) filter to apply",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : { }
      }
    },
    "/api/maven/latest/version/{repository}/{gav}" : {
      "get" : {
        "tags" : [ "Maven" ],
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "allowEmptyValue" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "extension",
          "in" : "query",
          "description" : "Changes extension of matched file (by default matches 'jar'). Pass an empty value to match files without an extension.",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "classifier",
          "in" : "query",
          "description" : "Appends classifier suffix to matched file",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "filter",
          "in" : "query",
          "description" : "Version (prefix) filter to apply",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "type",
          "in" : "query",
          "description" : "Format of expected response type: empty (default) for json; 'raw' for plain text",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "sorted",
          "in" : "query",
          "description" : "Whether to sort versions using built-in comparator (default: true). Set to false to preserve raw order from maven-metadata.xml",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LatestVersionResponse"
                }
              },
              "text/plain" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/maven/versions/{repository}/{gav}" : {
      "get" : {
        "tags" : [ "Maven" ],
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "filter",
          "in" : "query",
          "description" : "Version (prefix) filter to apply",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "sorted",
          "in" : "query",
          "description" : "Whether to sort versions using built-in comparator (default: true). Set to false to preserve raw order from maven-metadata.xml",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : { }
      }
    },
    "/api/settings/domain/{name}" : {
      "get" : {
        "tags" : [ "Settings" ],
        "summary" : "Find configuration",
        "parameters" : [ {
          "name" : "name",
          "in" : "path",
          "description" : "Name of configuration to fetch",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Returns dto representing configuration"
          },
          "401" : {
            "description" : "Returns 401 if token without moderation permission has been used to access this resource"
          },
          "404" : {
            "description" : "Returns 404 if non-existing configuration is requested"
          }
        }
      },
      "put" : {
        "tags" : [ "Settings" ],
        "summary" : "Update configuration",
        "parameters" : [ {
          "name" : "name",
          "in" : "path",
          "description" : "Name of configuration to update",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Returns 200 if configuration has been updated successfully"
          },
          "401" : {
            "description" : "Returns 401 if token without moderation permission has been used to access this resource"
          },
          "404" : {
            "description" : "Returns 404 if non-existing configuration is requested"
          }
        }
      }
    },
    "/api/settings/domains" : {
      "get" : {
        "tags" : [ "Settings" ],
        "summary" : "List configurations",
        "responses" : {
          "200" : {
            "description" : "Returns list of configuration names"
          },
          "401" : {
            "description" : "Returns 401 if token without moderation permission has been used to access this resource"
          }
        }
      }
    },
    "/api/settings/schema/{name}" : {
      "get" : {
        "tags" : [ "Settings" ],
        "summary" : "Get schema",
        "parameters" : [ {
          "name" : "name",
          "in" : "path",
          "description" : "Name of schema to get",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Returns dto representing configuration schema",
            "content" : {
              "text/plain" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          },
          "401" : {
            "description" : "Returns 401 if token without moderation permission has been used to access this resource"
          },
          "404" : {
            "description" : "Returns 404 if non-existing configuration schema is requested"
          }
        }
      }
    },
    "/api/statistics/resolved/all" : {
      "get" : {
        "tags" : [ "Statistics" ],
        "parameters" : [ {
          "name" : "from",
          "in" : "query",
          "description" : "First instant to include, in ISO-8601 UTC format",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "to",
          "in" : "query",
          "description" : "Last instant to include, in ISO-8601 UTC format",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Aggregated list of statistics per each repository",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AllResolvedResponse"
                }
              }
            }
          },
          "400" : {
            "description" : "When an invalid statistics date range is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "When invalid token is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403" : {
            "description" : "When non-manager token is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/statistics/resolved/entries" : {
      "get" : {
        "tags" : [ "Statistics" ],
        "parameters" : [ {
          "name" : "limit",
          "in" : "query",
          "description" : "Amount of entries to find (Maximum: 100)",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "offset",
          "in" : "query",
          "description" : "Amount of entries to skip",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "repository",
          "in" : "query",
          "description" : "Repository to search in. If omitted, all repositories are searched.",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "phrase",
          "in" : "query",
          "description" : "Phrase to search for",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "from",
          "in" : "query",
          "description" : "First instant to include, in ISO-8601 UTC format",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "to",
          "in" : "query",
          "description" : "Last instant to include, in ISO-8601 UTC format",
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Paginated resolved entry statistics",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ResolvedEntriesResponse"
                }
              }
            }
          },
          "400" : {
            "description" : "When invalid pagination or statistics date range is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "When invalid token is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403" : {
            "description" : "When non-manager token is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/statistics/resolved/phrase/{limit}/{repository}/{gav}" : {
      "get" : {
        "tags" : [ "Statistics" ],
        "parameters" : [ {
          "name" : "limit",
          "in" : "path",
          "description" : "Amount of records to find (Maximum: 100)",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "repository",
          "in" : "path",
          "description" : "Repository to search in",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Phrase to search for",
          "required" : true,
          "allowEmptyValue" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Aggregated sum of resolved requests with list a list of them all",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ResolvedCountResponse"
                }
              }
            }
          },
          "400" : {
            "description" : "When invalid page size is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401" : {
            "description" : "When invalid token is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403" : {
            "description" : "When token cannot access the requested path",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/statistics/resolved/unique" : {
      "get" : {
        "tags" : [ "Statistics" ],
        "responses" : {
          "200" : {
            "description" : "Number of all unique requests. Deprecated and may be removed in Reposilite 4.x.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "integer",
                  "format" : "int64"
                }
              }
            }
          },
          "401" : {
            "description" : "When invalid token is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403" : {
            "description" : "When non-manager token is used",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "deprecated" : true
      }
    },
    "/api/status/failures" : {
      "get" : {
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/FailuresResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/status/health" : {
      "get" : {
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HealthResponse"
                }
              }
            }
          },
          "503" : {
            "description" : "Service Unavailable",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/status/instance" : {
      "get" : {
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/InstanceStatusResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/status/snapshots" : {
      "get" : {
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/StatusSnapshot"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/tokens" : {
      "get" : {
        "tags" : [ "Tokens" ],
        "summary" : "Returns all existing tokens and data such as their permissions. Note: Requires Manager",
        "responses" : { }
      }
    },
    "/api/tokens/{name}" : {
      "get" : {
        "tags" : [ "Tokens" ],
        "summary" : "Returns data about the token given via it's name. Note: Requires manager or you must be the token owner",
        "parameters" : [ {
          "name" : "name",
          "in" : "path",
          "description" : "Name of the token to be deleted",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : { }
      },
      "put" : {
        "tags" : [ "Tokens" ],
        "summary" : "Creates / Updates a token via the specified body. Note: Requires manager permission.",
        "parameters" : [ {
          "name" : "name",
          "in" : "path",
          "description" : "Name of the token to be created or updated",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "description" : "Data about the account including the secret and it's permissions",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/CreateAccessTokenWithNoNameRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : { }
      },
      "patch" : {
        "tags" : [ "Tokens" ],
        "summary" : "Updates token metadata (description, permissions, routes, expiry) without regenerating the secret. Note: Requires Manager",
        "parameters" : [ {
          "name" : "name",
          "in" : "path",
          "description" : "Name of the token to be updated",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "requestBody" : {
          "description" : "Token metadata to update. Any field that is not provided is left unchanged",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateAccessTokenWithNoNameRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : { }
      },
      "delete" : {
        "tags" : [ "Tokens" ],
        "summary" : "Deletes the token specified via it's name. Note: Requires Manager",
        "parameters" : [ {
          "name" : "name",
          "in" : "path",
          "description" : "Name of the token to be deleted",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : { }
      }
    },
    "/api/tokens/{name}/secret" : {
      "post" : {
        "tags" : [ "Tokens" ],
        "summary" : "Regenerates and returns a new secret for the token, invalidating the previous one. Note: Requires Manager",
        "parameters" : [ {
          "name" : "name",
          "in" : "path",
          "description" : "Name of the token whose secret is regenerated",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : { }
      }
    },
    "/{repository}" : {
      "get" : {
        "tags" : [ "Maven" ],
        "summary" : "Browse the repository root",
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Returns the repository directory index",
            "content" : {
              "text/html" : { }
            }
          },
          "404" : {
            "description" : "Returns 404 if the repository does not exist"
          }
        }
      },
      "head" : {
        "tags" : [ "Maven" ],
        "summary" : "Browse the repository root",
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Returns the repository directory index",
            "content" : {
              "text/html" : { }
            }
          },
          "404" : {
            "description" : "Returns 404 if the repository does not exist"
          }
        }
      }
    },
    "/{repository}/{gav}" : {
      "get" : {
        "tags" : [ "Maven" ],
        "summary" : "Browse the contents of repositories",
        "description" : "The route may return various responses to properly handle Maven specification and frontend application using the same path.",
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Input stream of requested file",
            "content" : {
              "multipart/form-data" : { }
            }
          },
          "404" : {
            "description" : "Returns 404 (for Maven) with frontend (for user) as a response if requested resource is not located in the current repository"
          }
        }
      },
      "post" : {
        "tags" : [ "Maven" ],
        "summary" : "Deploy artifact to the repository",
        "description" : "Deploy supports both, POST and PUT, methods and allows to deploy artifact builds",
        "parameters" : [ {
          "name" : "X-Generate-Checksums",
          "in" : "header",
          "description" : "Determines if Reposilite should generate checksums for this file",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Input stream of requested file",
            "content" : {
              "multipart/form-data" : { }
            }
          },
          "401" : {
            "description" : "Returns 401 for invalid credentials"
          },
          "507" : {
            "description" : "Returns 507 if Reposilite does not have enough disk space to store the uploaded file"
          }
        }
      },
      "put" : {
        "tags" : [ "Maven" ],
        "summary" : "Deploy artifact to the repository",
        "description" : "Deploy supports both, POST and PUT, methods and allows to deploy artifact builds",
        "parameters" : [ {
          "name" : "X-Generate-Checksums",
          "in" : "header",
          "description" : "Determines if Reposilite should generate checksums for this file",
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "Input stream of requested file",
            "content" : {
              "multipart/form-data" : { }
            }
          },
          "401" : {
            "description" : "Returns 401 for invalid credentials"
          },
          "507" : {
            "description" : "Returns 507 if Reposilite does not have enough disk space to store the uploaded file"
          }
        }
      },
      "delete" : {
        "tags" : [ "Maven" ],
        "summary" : "Delete the given file from repository",
        "parameters" : [ {
          "name" : "repository",
          "in" : "path",
          "description" : "Destination repository",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "gav",
          "in" : "path",
          "description" : "Artifact path qualifier",
          "required" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : { }
      }
    }
  },
  "components" : {
    "schemas" : {
      "SessionDetails" : {
        "type" : "object",
        "properties" : {
          "accessToken" : {
            "$ref" : "#/components/schemas/AccessTokenDto"
          },
          "permissions" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/AccessTokenPermission"
            }
          },
          "routes" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/Route"
            }
          }
        },
        "required" : [ "accessToken", "permissions", "routes" ]
      },
      "CommandStatus" : {
        "type" : "string",
        "enum" : [ "SUCCEEDED", "FAILED" ]
      },
      "ExecutionResponse" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "$ref" : "#/components/schemas/CommandStatus"
          },
          "response" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        },
        "required" : [ "status", "response" ]
      },
      "LatestVersionResponse" : {
        "type" : "object",
        "properties" : {
          "snapshot" : {
            "type" : "boolean"
          },
          "version" : {
            "type" : "string"
          }
        },
        "required" : [ "snapshot", "version" ]
      },
      "PomDetails" : {
        "type" : "object",
        "properties" : {
          "groupId" : {
            "type" : "string"
          },
          "artifactId" : {
            "type" : "string"
          },
          "version" : {
            "type" : "string"
          }
        },
        "required" : [ "groupId", "artifactId", "version" ]
      },
      "ErrorResponse" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "integer",
            "format" : "int32"
          },
          "message" : {
            "type" : "string"
          }
        },
        "required" : [ "status", "message" ]
      },
      "AllResolvedResponse" : {
        "type" : "object",
        "properties" : {
          "statisticsEnabled" : {
            "type" : "boolean"
          },
          "interval" : {
            "$ref" : "#/components/schemas/ResolvedRequestsInterval"
          },
          "repositories" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/RepositoryStatistics"
            }
          }
        },
        "required" : [ "statisticsEnabled", "interval", "repositories" ]
      },
      "IntervalRecord" : {
        "type" : "object",
        "properties" : {
          "date" : {
            "type" : "integer",
            "format" : "int64"
          },
          "count" : {
            "type" : "integer",
            "format" : "int64"
          }
        },
        "required" : [ "date", "count" ]
      },
      "RepositoryStatistics" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/IntervalRecord"
            }
          }
        },
        "required" : [ "name", "data" ]
      },
      "ResolvedCountResponse" : {
        "type" : "object",
        "properties" : {
          "sum" : {
            "type" : "integer",
            "format" : "int64"
          },
          "requests" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ResolvedEntry"
            }
          }
        },
        "required" : [ "sum", "requests" ]
      },
      "ResolvedEntriesPage" : {
        "type" : "object",
        "properties" : {
          "limit" : {
            "type" : "integer",
            "format" : "int32"
          },
          "offset" : {
            "type" : "integer",
            "format" : "int64"
          },
          "hasMore" : {
            "type" : "boolean"
          },
          "nextOffset" : {
            "format" : "int64",
            "type" : [ "integer", "null" ]
          }
        },
        "required" : [ "limit", "offset", "hasMore" ]
      },
      "ResolvedEntriesResponse" : {
        "type" : "object",
        "properties" : {
          "page" : {
            "$ref" : "#/components/schemas/ResolvedEntriesPage"
          },
          "entries" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ResolvedStatisticsEntry"
            }
          }
        },
        "required" : [ "page", "entries" ]
      },
      "ResolvedEntry" : {
        "type" : "object",
        "properties" : {
          "gav" : {
            "type" : "string"
          },
          "count" : {
            "type" : "integer",
            "format" : "int64"
          }
        },
        "required" : [ "gav", "count" ]
      },
      "ResolvedRequestsInterval" : {
        "type" : "string",
        "enum" : [ "DAILY", "WEEKLY", "MONTHLY", "YEARLY" ]
      },
      "ResolvedStatisticsEntry" : {
        "type" : "object",
        "properties" : {
          "repository" : {
            "type" : "string"
          },
          "path" : {
            "type" : "string"
          },
          "count" : {
            "type" : "integer",
            "format" : "int64"
          }
        },
        "required" : [ "repository", "path", "count" ]
      },
      "ConnectionPoolStatus" : {
        "type" : "object",
        "properties" : {
          "active" : {
            "type" : "integer",
            "format" : "int32"
          },
          "capacity" : {
            "type" : "integer",
            "format" : "int32"
          },
          "waiting" : {
            "type" : "integer",
            "format" : "int32"
          }
        },
        "required" : [ "active", "capacity", "waiting" ]
      },
      "FailuresResponse" : {
        "type" : "object",
        "properties" : {
          "failures" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/RecordedFailure"
            }
          }
        },
        "required" : [ "failures" ]
      },
      "HealthResponse" : {
        "type" : "object",
        "properties" : {
          "status" : {
            "type" : "string"
          }
        },
        "required" : [ "status" ]
      },
      "InstanceStatusResponse" : {
        "type" : "object",
        "properties" : {
          "version" : {
            "type" : "string"
          },
          "latestVersion" : {
            "type" : [ "string", "null" ]
          },
          "uptime" : {
            "type" : "integer",
            "format" : "int64"
          },
          "usedMemory" : {
            "type" : "number",
            "format" : "double"
          },
          "maxMemory" : {
            "type" : "integer",
            "format" : "int32"
          },
          "usedThreads" : {
            "type" : "integer",
            "format" : "int32"
          },
          "failuresCount" : {
            "type" : "integer",
            "format" : "int32"
          },
          "resourcePools" : {
            "$ref" : "#/components/schemas/ResourcePools"
          }
        },
        "required" : [ "version", "uptime", "usedMemory", "maxMemory", "usedThreads", "failuresCount", "resourcePools" ]
      },
      "RecordedFailure" : {
        "type" : "object",
        "properties" : {
          "path" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "messages" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace" : {
            "type" : "string"
          },
          "occurrences" : {
            "type" : "integer",
            "format" : "int32"
          }
        },
        "required" : [ "path", "type", "message", "messages", "trace", "occurrences" ]
      },
      "ResourcePools" : {
        "type" : "object",
        "properties" : {
          "web" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ThreadPoolStatus"
            }, {
              "type" : "null"
            } ]
          },
          "io" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ThreadPoolStatus"
            }, {
              "type" : "null"
            } ]
          },
          "database" : {
            "anyOf" : [ {
              "$ref" : "#/components/schemas/ConnectionPoolStatus"
            }, {
              "type" : "null"
            } ]
          }
        }
      },
      "StatusSnapshot" : {
        "type" : "object",
        "properties" : {
          "at" : {
            "type" : "integer",
            "format" : "int64"
          },
          "memory" : {
            "type" : "integer",
            "format" : "int32"
          },
          "threads" : {
            "type" : "integer",
            "format" : "int32"
          }
        },
        "required" : [ "at", "memory", "threads" ]
      },
      "ThreadPoolStatus" : {
        "type" : "object",
        "properties" : {
          "active" : {
            "type" : "integer",
            "format" : "int32"
          },
          "capacity" : {
            "type" : "integer",
            "format" : "int32"
          },
          "queued" : {
            "type" : "integer",
            "format" : "int32"
          },
          "reserved" : {
            "type" : "integer",
            "format" : "int32"
          }
        },
        "required" : [ "active", "capacity", "queued", "reserved" ]
      },
      "FileDetails" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "$ref" : "#/components/schemas/FileType"
          },
          "name" : {
            "type" : "string"
          }
        },
        "required" : [ "type", "name" ]
      },
      "FileType" : {
        "type" : "string",
        "enum" : [ "FILE", "DIRECTORY" ]
      },
      "AccessTokenIdentifier" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "$ref" : "#/components/schemas/AccessTokenType"
          },
          "value" : {
            "type" : "integer",
            "format" : "int32"
          }
        },
        "required" : [ "type", "value" ]
      },
      "AccessTokenPermission" : {
        "type" : "string",
        "enum" : [ "MANAGER" ]
      },
      "AccessTokenType" : {
        "type" : "string",
        "enum" : [ "PERSISTENT", "TEMPORARY" ]
      },
      "Route" : {
        "type" : "object",
        "properties" : {
          "path" : {
            "type" : "string"
          },
          "permission" : {
            "$ref" : "#/components/schemas/RoutePermission"
          }
        },
        "required" : [ "path", "permission" ]
      },
      "RoutePermission" : {
        "type" : "string",
        "enum" : [ "READ", "WRITE" ]
      },
      "AccessTokenDto" : {
        "type" : "object",
        "properties" : {
          "identifier" : {
            "$ref" : "#/components/schemas/AccessTokenIdentifier"
          },
          "name" : {
            "type" : "string"
          },
          "createdAt" : {
            "type" : "string",
            "format" : "date"
          },
          "description" : {
            "type" : "string"
          },
          "expiresAt" : {
            "format" : "date-time",
            "type" : [ "string", "null" ]
          },
          "expired" : {
            "type" : "boolean"
          }
        },
        "required" : [ "identifier", "name", "createdAt", "description", "expired" ]
      },
      "CreateAccessTokenWithNoNameRequest" : {
        "type" : "object",
        "properties" : {
          "type" : {
            "$ref" : "#/components/schemas/AccessTokenType",
            "description" : "Type of the created token (persistent or temporary)"
          },
          "secretType" : {
            "$ref" : "#/components/schemas/SecretType",
            "description" : "Determines whether the provided secret is raw or already encrypted"
          },
          "secret" : {
            "description" : "If not provided, the secret will be generated automatically",
            "type" : [ "string", "null" ]
          },
          "permissions" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "Permissions assigned to the created token: [MANAGER]"
          },
          "routes" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CreateAccessTokenWithNoNameRequestRoute"
            },
            "description" : "Route permissions assigned to the created token"
          },
          "expiresAt" : {
            "format" : "date-time",
            "description" : "Expiration timestamp (ISO-8601 Instant). If not provided, the token never expires",
            "type" : [ "string", "null" ]
          },
          "description" : {
            "type" : "string",
            "description" : "Human-readable description of the token"
          }
        },
        "required" : [ "type", "secretType", "permissions", "routes", "description" ]
      },
      "CreateAccessTokenWithNoNameRequestRoute" : {
        "type" : "object",
        "properties" : {
          "path" : {
            "type" : "string",
            "description" : "The path to which the permissions apply"
          },
          "permissions" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "Permissions assigned to the provided path: [READ, WRITE]"
          }
        },
        "required" : [ "path", "permissions" ]
      },
      "SecretType" : {
        "type" : "string",
        "enum" : [ "RAW", "ENCRYPTED" ]
      },
      "UpdateAccessTokenWithNoNameRequest" : {
        "type" : "object",
        "properties" : {
          "description" : {
            "description" : "Human-readable description of the token. If not provided, the current description is kept",
            "type" : [ "string", "null" ]
          },
          "permissions" : {
            "items" : {
              "type" : "string"
            },
            "description" : "Permissions assigned to the token: [MANAGER]. If not provided, the current permissions are kept",
            "type" : [ "array", "null" ]
          },
          "routes" : {
            "items" : {
              "$ref" : "#/components/schemas/CreateAccessTokenWithNoNameRequestRoute"
            },
            "description" : "Route permissions assigned to the token. If not provided, the current routes are kept",
            "type" : [ "array", "null" ]
          },
          "expiresAt" : {
            "format" : "date-time",
            "description" : "Expiration timestamp (ISO-8601 Instant). If not provided, the current expiration is kept. A null value clears it",
            "type" : [ "string", "null" ]
          }
        }
      }
    }
  }
}