List Downloads
POST//localhost:11337/file-svc/downloads
List download details.
Requires the file-svc:download:view
permission.
Responses
- 200
- 401
- 500
List of downloads
- application/json
- Schema
- Example (auto)
Schema
downloads object[]
{
"downloads": [
{
"createdAt": "string",
"downloadedBytes": 0,
"error": "string",
"fileName": "string",
"filePath": "string",
"fileSize": 0,
"id": "string",
"progress": 0,
"status": "string",
"updatedAt": "string",
"url": "string"
}
]
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
stringstring
"string"
Internal Server Error
- application/json
- Schema
- Example (auto)
Schema
stringstring
"string"
Authorization: Authorization
name: Authorizationtype: apiKeydescription: Type "Bearer" followed by a space and token acquired from the User Svc Login endpoint.in: header
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "//localhost:11337/file-svc/downloads");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "<Authorization>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear