-
Notifications
You must be signed in to change notification settings - Fork 0
Swagger API Docs
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
GET /user/{userId}
Get User by id
Name | In | Type | Required | Description |
---|---|---|---|---|
userId | path | integer(int64) | true | none |
Example responses
200 Response
{
"id": 0,
"name": "string",
"email": "string",
"profilePictureLink": "string",
"cacheFilesLink": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | UserInfoDto |
404 | Not Found | User not found | None |
PUT /user/{userId}
Update User
Body parameter
{
"name": "string",
"password": "string",
"email": "string"
}
Name | In | Type | Required | Description |
---|---|---|---|---|
userId | path | integer(int64) | true | none |
body | body | UserUpdateDto | true | none |
Example responses
200 Response
{
"id": 0,
"name": "string",
"email": "string",
"profilePictureLink": "string",
"cacheFilesLink": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | UserInfoDto |
404 | Not Found | User not found | None |
422 | Unprocessable Entity | The dto is not valid | None |
DELETE /user/{userId}
Delete User
Name | In | Type | Required | Description |
---|---|---|---|---|
userId | path | integer(int64) | true | none |
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
404 | Not Found | User not found | None |
GET /user/{userId}/profile_picture
Get User's profile picture by user id
Name | In | Type | Required | Description |
---|---|---|---|---|
userId | path | integer(int64) | true | none |
Example responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
404 | Not Found | User not found | None |
PUT /user/{userId}/profile_picture
Update User profile picture
Body parameter
file: string
Name | In | Type | Required | Description |
---|---|---|---|---|
userId | path | integer(int64) | true | none |
body | body | object | false | none |
» file | body | string(binary) | true | none |
Example responses
200 Response
{
"id": 0,
"name": "string",
"email": "string",
"profilePictureLink": "string",
"cacheFilesLink": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | UserInfoDto |
404 | Not Found | User not found | None |
GET /user
Get all Users
Example responses
200 Response
"string"
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | string |
POST /user
Create new User
Body parameter
file: string
userCreateDto:
name: string
password: string
email: string
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | object | false | none |
» file | body | string(binary) | true | none |
» userCreateDto | body | UserCreateDto | true | none |
»» name | body | string | true | none |
»» password | body | string | true | none |
body | string | true | none |
Example responses
200 Response
{
"id": 0,
"name": "string",
"email": "string",
"profilePictureLink": "string",
"cacheFilesLink": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | UserInfoDto |
422 | Unprocessable Entity | The dto is not valid | None |
GET /user/{userId}/cache_files
Get contributed cache files of User by its id
Name | In | Type | Required | Description |
---|---|---|---|---|
userId | path | integer(int64) | true | none |
Example responses
200 Response
"string"
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | string |
404 | Not Found | User not found | None |
GET /game/{gameId}
Get game by id
Name | In | Type | Required | Description |
---|---|---|---|---|
gameId | path | integer(int64) | true | none |
Example responses
200 Response
{
"id": 0,
"name": "string",
"cacheFileName": "string",
"incrementalCacheFileLink": "string",
"incrementalCacheLastModified": "2019-08-24T14:15:22Z",
"cacheFilesLink": "string",
"steamId": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | GameInfoDto |
404 | Not Found | Game not found | None |
PUT /game/{gameId}
Update Game
Body parameter
{
"name": "string",
"cacheFileName": "string",
"steamId": 0
}
Name | In | Type | Required | Description |
---|---|---|---|---|
gameId | path | integer(int64) | true | none |
body | body | GameUpdateDto | true | none |
Example responses
200 Response
{
"id": 0,
"name": "string",
"cacheFileName": "string",
"incrementalCacheFileLink": "string",
"incrementalCacheLastModified": "2019-08-24T14:15:22Z",
"cacheFilesLink": "string",
"steamId": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | GameInfoDto |
404 | Not Found | Game not found | None |
422 | Unprocessable Entity | The dto is not valid | None |
DELETE /game/{gameId}
Delete game by its id
Name | In | Type | Required | Description |
---|---|---|---|---|
gameId | path | integer(int64) | true | none |
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
404 | Not Found | Game not found | None |
GET /game
Get all Games
Example responses
200 Response
"string"
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | string |
POST /game
Create new Game
Body parameter
{
"name": "string",
"cacheFileName": "string",
"steamId": 0
}
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | GameCreateDto | true | none |
Example responses
200 Response
{
"id": 0,
"name": "string",
"cacheFileName": "string",
"incrementalCacheFileLink": "string",
"incrementalCacheLastModified": "2019-08-24T14:15:22Z",
"cacheFilesLink": "string",
"steamId": 0
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | GameInfoDto |
422 | Unprocessable Entity | The dto is not valid | None |
GET /game/{gameId}/incremental_cache_file
Get game's incremental cache file by game id
Name | In | Type | Required | Description |
---|---|---|---|---|
gameId | path | integer(int64) | true | none |
Example responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
404 | Not Found | Game not found | None |
GET /game/{gameId}/cache_files
Get contributed cache files for game by game id
Name | In | Type | Required | Description |
---|---|---|---|---|
gameId | path | integer(int64) | true | none |
Example responses
200 Response
"string"
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | string |
404 | Not Found | Game not found | None |
POST /cache_file
Upload cache file
Body parameter
file: string
cacheFileUploadDto:
uploaderId: 0
gameId: 0
Name | In | Type | Required | Description |
---|---|---|---|---|
body | body | object | false | none |
» file | body | string(binary) | true | none |
» cacheFileUploadDto | body | CacheFileUploadDto | true | none |
»» uploaderId | body | integer(int64) | true | none |
»» gameId | body | integer(int64) | true | none |
Example responses
200 Response
{
"id": 0,
"uploadDateTime": "2019-08-24T14:15:22Z",
"uploaderLink": "string",
"gameLink": "string",
"dataLink": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | CacheFileInfoDto |
422 | Unprocessable Entity | The dto is not valid or the cache file is not valid or the cache file contains no new cache entries | None |
GET /cache_file/{cacheFileId}
Find cache file by its id
Name | In | Type | Required | Description |
---|---|---|---|---|
cacheFileId | path | integer(int64) | true | none |
Example responses
200 Response
{
"id": 0,
"uploadDateTime": "2019-08-24T14:15:22Z",
"uploaderLink": "string",
"gameLink": "string",
"dataLink": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | CacheFileInfoDto |
404 | Not Found | Cache file not found | None |
DELETE /cache_file/{cacheFileId}
Delete cache file by its id
Name | In | Type | Required | Description |
---|---|---|---|---|
cacheFileId | path | integer(int64) | true | none |
Example responses
200 Response
{
"id": 0,
"uploadDateTime": "2019-08-24T14:15:22Z",
"uploaderLink": "string",
"gameLink": "string",
"dataLink": "string"
}
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | CacheFileInfoDto |
404 | Not Found | Cache file not found | None |
GET /cache_file/{cacheFileId}/data
Get cache file data by cache file id
Name | In | Type | Required | Description |
---|---|---|---|---|
cacheFileId | path | integer(int64) | true | none |
Example responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | OK | None |
404 | Not Found | Cache file not found | None |
{
"name": "string",
"password": "string",
"email": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
name | string | true | none | none |
password | string | true | none | none |
string | true | none | none |
{
"id": 0,
"name": "string",
"email": "string",
"profilePictureLink": "string",
"cacheFilesLink": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | integer(int64) | false | none | none |
name | string | false | none | none |
string | false | none | none | |
profilePictureLink | string | false | none | none |
cacheFilesLink | string | false | none | none |
{
"name": "string",
"cacheFileName": "string",
"steamId": 0
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
name | string | true | none | none |
cacheFileName | string | true | none | none |
steamId | integer(int64) | false | none | none |
{
"id": 0,
"name": "string",
"cacheFileName": "string",
"incrementalCacheFileLink": "string",
"incrementalCacheLastModified": "2019-08-24T14:15:22Z",
"cacheFilesLink": "string",
"steamId": 0
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | integer(int64) | false | none | none |
name | string | false | none | none |
cacheFileName | string | false | none | none |
incrementalCacheFileLink | string | false | none | none |
incrementalCacheLastModified | string(date-time) | false | none | none |
cacheFilesLink | string | false | none | none |
steamId | integer(int64) | false | none | none |
{
"name": "string",
"password": "string",
"email": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
name | string | true | none | none |
password | string | true | none | none |
string | true | none | none |
{
"name": "string",
"cacheFileName": "string",
"steamId": 0
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
name | string | true | none | none |
cacheFileName | string | true | none | none |
steamId | integer(int64) | false | none | none |
{
"uploaderId": 0,
"gameId": 0
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
uploaderId | integer(int64) | true | none | none |
gameId | integer(int64) | true | none | none |
{
"id": 0,
"uploadDateTime": "2019-08-24T14:15:22Z",
"uploaderLink": "string",
"gameLink": "string",
"dataLink": "string"
}
Name | Type | Required | Restrictions | Description |
---|---|---|---|---|
id | integer(int64) | false | none | none |
uploadDateTime | string(date-time) | false | none | none |
uploaderLink | string | false | none | none |
gameLink | string | false | none | none |
dataLink | string | false | none | none |