497 lines
11 KiB
YAML
497 lines
11 KiB
YAML
|
|
openapi: 3.0.0
|
||
|
|
info:
|
||
|
|
title: Api
|
||
|
|
version: 0.0.0
|
||
|
|
paths:
|
||
|
|
/discounts/list:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- DiscountsApi
|
||
|
|
summary: getDiscountsCampaigns
|
||
|
|
operationId: getDiscountsCampaigns
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/discounts/add:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- DiscountsApi
|
||
|
|
summary: addDiscountCampaign
|
||
|
|
operationId: addDiscountCampaign
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/discounts/delete/<id>:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- DiscountsApi
|
||
|
|
summary: deleteDiscountCampaign
|
||
|
|
operationId: deleteDiscountCampaign
|
||
|
|
parameters:
|
||
|
|
- name: id
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/packs/previews:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PacksApi
|
||
|
|
summary: listPacks
|
||
|
|
operationId: listPacks
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/packs/actions:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PacksApi
|
||
|
|
summary: listPacksActions
|
||
|
|
operationId: listPacksActions
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/pack/buy/<packId>:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PacksApi
|
||
|
|
summary: buyPackPage
|
||
|
|
operationId: buyPackPage
|
||
|
|
parameters:
|
||
|
|
- name: packId
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/pack/<packId>:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PacksApi
|
||
|
|
summary: fetchPack
|
||
|
|
operationId: fetchPack
|
||
|
|
parameters:
|
||
|
|
- name: packId
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/pack/edit:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- PacksApi
|
||
|
|
summary: editPack
|
||
|
|
operationId: editPack
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/pack/edit/<packId>:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PacksApi
|
||
|
|
summary: getEditPack
|
||
|
|
operationId: getEditPack
|
||
|
|
parameters:
|
||
|
|
- name: packId
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/pack/delete:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- PacksApi
|
||
|
|
summary: deletePack
|
||
|
|
operationId: deletePack
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/adsgram/reward:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- AdsApi
|
||
|
|
summary: adsgramReward
|
||
|
|
operationId: adsgramReward
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/ads/product/acquire/<key>:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- AdsApi
|
||
|
|
summary: acquireProduct
|
||
|
|
operationId: acquireProduct
|
||
|
|
parameters:
|
||
|
|
- name: key
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/test/<testId>:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- TestsApi
|
||
|
|
summary: fetchTest
|
||
|
|
operationId: fetchTest
|
||
|
|
parameters:
|
||
|
|
- name: testId
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/tests/<packId>:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- TestsApi
|
||
|
|
summary: fetchPackTests
|
||
|
|
operationId: fetchPackTests
|
||
|
|
parameters:
|
||
|
|
- name: packId
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/pack/cards/<packId>:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- CardsApi
|
||
|
|
summary: fetchPackCards
|
||
|
|
operationId: fetchPackCards
|
||
|
|
parameters:
|
||
|
|
- name: packId
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/pack/<packId>/card/<cardId>/image:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- CardsApi
|
||
|
|
summary: fetchCardImage
|
||
|
|
description: Get image for specific card (for web clients)\nReturns PNG image file
|
||
|
|
operationId: fetchCardImage
|
||
|
|
parameters:
|
||
|
|
- name: packId
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
- name: cardId
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/cards/ids:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- CardsApi
|
||
|
|
summary: fetchIds
|
||
|
|
operationId: fetchIds
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/cards:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- CardsApi
|
||
|
|
summary: fetchCards
|
||
|
|
operationId: fetchCards
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/cards/add:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- CardsApi
|
||
|
|
summary: addCard
|
||
|
|
operationId: addCard
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/cards/delete:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- CardsApi
|
||
|
|
summary: deleteCard
|
||
|
|
operationId: deleteCard
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/user/create:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: createUser
|
||
|
|
operationId: createUser
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/users:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: fetchUsers
|
||
|
|
operationId: fetchUsers
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/user:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: fetchUser
|
||
|
|
operationId: fetchUser
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/user/purchases:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: userPurchases
|
||
|
|
operationId: userPurchases
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/users/ids:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: fetchUsersIds
|
||
|
|
operationId: fetchUsersIds
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/users/add:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: editUser
|
||
|
|
operationId: editUser
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/user/settings:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: updateUserSettings
|
||
|
|
operationId: updateUserSettings
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/user/data:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: add
|
||
|
|
operationId: add
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/user/data/add/test-statistics:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: addTestStatistics
|
||
|
|
operationId: addTestStatistics
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/users/delete:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- UserApi
|
||
|
|
summary: deleteUser
|
||
|
|
operationId: deleteUser
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/subscription/page:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- SubscriptionApi
|
||
|
|
summary: subscriptionPageRoute
|
||
|
|
operationId: subscriptionPageRoute
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/subscription/add:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- SubscriptionApi
|
||
|
|
summary: addSubscription
|
||
|
|
operationId: addSubscription
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/subscription/delete/<id>:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- SubscriptionApi
|
||
|
|
summary: deleteSubscription
|
||
|
|
operationId: deleteSubscription
|
||
|
|
parameters:
|
||
|
|
- name: id
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/subscriptions:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- SubscriptionApi
|
||
|
|
summary: allSubscriptions
|
||
|
|
operationId: allSubscriptions
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/check_payment/:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PurchaseApi
|
||
|
|
summary: checkPurchase
|
||
|
|
operationId: checkPurchase
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/check_payments/:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PurchaseApi
|
||
|
|
summary: checkPayments
|
||
|
|
operationId: checkPayments
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/create_payment/:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PurchaseApi
|
||
|
|
summary: createPayment
|
||
|
|
operationId: createPayment
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/user/promocode:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- PromocodesApi
|
||
|
|
summary: legacyApplyPromocode
|
||
|
|
operationId: legacyApplyPromocode
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/promocode/list:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PromocodesApi
|
||
|
|
summary: getPromoCodeCampaigns
|
||
|
|
operationId: getPromoCodeCampaigns
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/promocode/<id>:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- PromocodesApi
|
||
|
|
summary: getPromoCodeCampaign
|
||
|
|
operationId: getPromoCodeCampaign
|
||
|
|
parameters:
|
||
|
|
- name: id
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/promocode/add:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- PromocodesApi
|
||
|
|
summary: addPromoCodeCampaign
|
||
|
|
operationId: addPromoCodeCampaign
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/promocode/delete/<id>:
|
||
|
|
post:
|
||
|
|
tags:
|
||
|
|
- PromocodesApi
|
||
|
|
summary: deletePromoCodeCampaign
|
||
|
|
operationId: deletePromoCodeCampaign
|
||
|
|
parameters:
|
||
|
|
- name: id
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/games/<gameId>/assets:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- GamesApi
|
||
|
|
summary: gameAssets
|
||
|
|
operationId: gameAssets
|
||
|
|
parameters:
|
||
|
|
- name: gameId
|
||
|
|
in: path
|
||
|
|
required: true
|
||
|
|
schema:
|
||
|
|
type: string
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
/games/list:
|
||
|
|
get:
|
||
|
|
tags:
|
||
|
|
- GamesApi
|
||
|
|
summary: gamesList
|
||
|
|
operationId: gamesList
|
||
|
|
responses:
|
||
|
|
200:
|
||
|
|
description: "Operation completed!"
|
||
|
|
components: { }
|
||
|
|
tags:
|
||
|
|
- name: DiscountsApi
|
||
|
|
- name: PacksApi
|
||
|
|
- name: AdsApi
|
||
|
|
- name: TestsApi
|
||
|
|
- name: CardsApi
|
||
|
|
- name: UserApi
|
||
|
|
- name: SubscriptionApi
|
||
|
|
- name: PurchaseApi
|
||
|
|
- name: PromocodesApi
|
||
|
|
- name: GamesApi
|