Download OpenAPI specification:
Authorites can be applied to roles and specify what functionality that role has access to.
Add list of roles applied to a user.
| userId required | integer <int32> |
[- 0
][- {
- "id": 0,
- "name": "string",
- "authorityIds": [
- 0
]
}
]Set list of roles applied to a user.
| userId required | integer <int32> |
[- 0
][- {
- "id": 0,
- "name": "string",
- "authorityIds": [
- 0
]
}
]Remove list of roles applied to a user.
| userId required | integer <int32> |
[- 0
][- {
- "id": 0,
- "name": "string",
- "authorityIds": [
- 0
]
}
]Update a specific role.
| id required | integer <int32> |
| id | integer <int32> |
| name | string [ 1 .. 255 ] characters |
| authorityIds | Array of integers <int32> [ items <int32 > ] |
{- "id": 0,
- "name": "string",
- "authorityIds": [
- 0
]
}{- "id": 0,
- "name": "string",
- "authorityIds": [
- 0
]
}Create a new role.
| id | integer <int32> |
| name | string [ 1 .. 255 ] characters |
| authorityIds | Array of integers <int32> [ items <int32 > ] |
{- "id": 0,
- "name": "string",
- "authorityIds": [
- 0
]
}{- "id": 0,
- "name": "string",
- "authorityIds": [
- 0
]
}Register a new user.
| email required | string <email> [ 3 .. 255 ] characters |
| username required | string [ 3 .. 20 ] characters ^[a-zA-Z0-9_-]*$ |
| password required | string [ 8 .. 72 ] characters |
{- "email": "user@example.com",
- "username": "string",
- "password": "stringst"
}{- "accessToken": "string",
- "tokenType": "string",
- "expires": "2019-08-24T14:15:22Z"
}Login to an existing user.
string <email> [ 3 .. 255 ] characters | |
| username | string |
| password required | string |
{- "email": "user@example.com",
- "username": "string",
- "password": "string"
}{- "accessToken": "string",
- "tokenType": "string",
- "expires": "2019-08-24T14:15:22Z"
}{- "id": 0,
- "name": "string",
- "description": "string",
- "repoId": "stringstringstringstringstringstringstri",
- "fileSize": 0,
- "uploaderId": 0,
- "uploaderUsername": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Update torrent name and/or description.
| id required | integer <int64> |
| id | integer <int64> |
| name | string [ 3 .. 255 ] characters ^[a-zA-Z0-9_-]*$ |
| description | string [ 3 .. 255 ] characters |
| repoId | string = 40 characters ^[a-fA-F0-9]{40}$ |
| fileSize | integer <int64> |
| uploaderId | integer <int32> |
| uploaderUsername | string |
| createdAt | string <date-time> |
| updatedAt | string <date-time> |
{- "id": 0,
- "name": "string",
- "description": "string",
- "repoId": "stringstringstringstringstringstringstri",
- "fileSize": 0,
- "uploaderId": 0,
- "uploaderUsername": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}{- "id": 0,
- "name": "string",
- "description": "string",
- "repoId": "stringstringstringstringstringstringstri",
- "fileSize": 0,
- "uploaderId": 0,
- "uploaderUsername": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Replace the torrent file.
| id required | integer <int64> |
| file required | string <binary> |
{- "file": "string"
}{- "message": "string",
- "timestamp": "2019-08-24T14:15:22Z"
}Get all torrents with pagination.
| page | integer <int32> Default: 0 |
| size | integer <int32> |
{- "id": 0,
- "name": "string",
- "description": "string",
- "repoId": "stringstringstringstringstringstringstri",
- "fileSize": 0,
- "uploaderId": 0,
- "uploaderUsername": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Upload a new torrent file with metadata.
required | object (TorrentDto) |
| file required | string <binary> |
{- "id": 0,
- "name": "string",
- "description": "string",
- "repoId": "stringstringstringstringstringstringstri",
- "fileSize": 0,
- "uploaderId": 0,
- "uploaderUsername": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Get torrent metadata by the repository's root commit hash.
| repoId required | string[0-9a-fA-F]{40} |
{- "id": 0,
- "name": "string",
- "description": "string",
- "repoId": "stringstringstringstringstringstringstri",
- "fileSize": 0,
- "uploaderId": 0,
- "uploaderUsername": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}Update specific user's information.
| id required | integer <int32> |
| id | integer <int32> |
string <email> [ 3 .. 255 ] characters | |
| username | string [ 3 .. 20 ] characters ^[a-zA-Z0-9_-]*$ |
| firstname | string [ 1 .. 35 ] characters |
| lastname | string [ 1 .. 35 ] characters |
{- "id": 0,
- "email": "user@example.com",
- "username": "string",
- "firstname": "string",
- "lastname": "string"
}[- 0
]Update the current user's information.
| id | integer <int32> |
string <email> [ 3 .. 255 ] characters | |
| username | string [ 3 .. 20 ] characters ^[a-zA-Z0-9_-]*$ |
| firstname | string [ 1 .. 35 ] characters |
| lastname | string [ 1 .. 35 ] characters |
{- "id": 0,
- "email": "user@example.com",
- "username": "string",
- "firstname": "string",
- "lastname": "string"
}{- "id": 0,
- "email": "user@example.com",
- "username": "string",
- "firstname": "string",
- "lastname": "string"
}Get paginated list of user's information.
| page | integer <int32> Default: 0 |
| size | integer <int32> |
[- {
- "id": 0,
- "email": "user@example.com",
- "username": "string",
- "firstname": "string",
- "lastname": "string"
}
]Get a paginated list of torrents uploaded by a specific user.
| id required | integer <int32> |
| page | integer <int32> Default: 0 |
| size | integer <int32> |
[- {
- "id": 0,
- "name": "string",
- "description": "string",
- "repoId": "stringstringstringstringstringstringstri",
- "fileSize": 0,
- "uploaderId": 0,
- "uploaderUsername": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]Get a paginated list of torrents uploaded by the current user.
| page | integer <int32> Default: 0 |
| size | integer <int32> |
[- {
- "id": 0,
- "name": "string",
- "description": "string",
- "repoId": "stringstringstringstringstringstringstri",
- "fileSize": 0,
- "uploaderId": 0,
- "uploaderUsername": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
]