Skip to content

Commit

Permalink
open api specs
Browse files Browse the repository at this point in the history
  • Loading branch information
matusdrobuliak66 committed Dec 11, 2024
1 parent 4f1c5d6 commit 26f9c57
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3031,6 +3031,18 @@ paths:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Forbidden
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Payment Required
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Bad Request
/v0/catalog/licensed-items/{licensed_item_id}:
get:
tags:
Expand Down Expand Up @@ -3065,6 +3077,18 @@ paths:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Forbidden
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Payment Required
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Bad Request
/v0/catalog/licensed-items/{licensed_item_id}:purchase:
post:
tags:
Expand Down Expand Up @@ -3101,6 +3125,18 @@ paths:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Forbidden
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Payment Required
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Bad Request
/v0/wallets/{wallet_id}/licensed-items-purchases:
get:
tags:
Expand Down Expand Up @@ -3159,6 +3195,18 @@ paths:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Forbidden
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Payment Required
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Bad Request
/v0/licensed-items-purchases/{licensed_item_purchase_id}:
get:
tags:
Expand Down Expand Up @@ -3192,6 +3240,18 @@ paths:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Forbidden
'402':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Payment Required
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/EnvelopedError'
description: Bad Request
/v0/projects/{project_uuid}/checkpoint/{ref_id}/iterations:
get:
tags:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from ..users.api import get_user
from ..wallets.api import get_wallet_with_available_credits_by_user_and_wallet
from ..wallets.errors import WalletNotEnoughCreditsError
from . import _licensed_items_api, _licensed_items_db
from . import _licensed_items_db
from ._models import LicensedItemsBodyParams
from .errors import LicensedItemPricingPlanMatchError

Expand Down Expand Up @@ -92,7 +92,7 @@ async def purchase_licensed_item(
app, user_id=user_id, wallet_id=body_params.wallet_id, product_name=product_name
)

licensed_item = await _licensed_items_api.get_licensed_item(
licensed_item = await get_licensed_item(
app, licensed_item_id=licensed_item_id, product_name=product_name
)

Expand Down

0 comments on commit 26f9c57

Please sign in to comment.