Skip to content

Commit 26f9c57

Browse files
open api specs
1 parent 4f1c5d6 commit 26f9c57

File tree

2 files changed

+62
-2
lines changed

2 files changed

+62
-2
lines changed

services/web/server/src/simcore_service_webserver/api/v0/openapi.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,6 +3031,18 @@ paths:
30313031
schema:
30323032
$ref: '#/components/schemas/EnvelopedError'
30333033
description: Forbidden
3034+
'402':
3035+
content:
3036+
application/json:
3037+
schema:
3038+
$ref: '#/components/schemas/EnvelopedError'
3039+
description: Payment Required
3040+
'400':
3041+
content:
3042+
application/json:
3043+
schema:
3044+
$ref: '#/components/schemas/EnvelopedError'
3045+
description: Bad Request
30343046
/v0/catalog/licensed-items/{licensed_item_id}:
30353047
get:
30363048
tags:
@@ -3065,6 +3077,18 @@ paths:
30653077
schema:
30663078
$ref: '#/components/schemas/EnvelopedError'
30673079
description: Forbidden
3080+
'402':
3081+
content:
3082+
application/json:
3083+
schema:
3084+
$ref: '#/components/schemas/EnvelopedError'
3085+
description: Payment Required
3086+
'400':
3087+
content:
3088+
application/json:
3089+
schema:
3090+
$ref: '#/components/schemas/EnvelopedError'
3091+
description: Bad Request
30683092
/v0/catalog/licensed-items/{licensed_item_id}:purchase:
30693093
post:
30703094
tags:
@@ -3101,6 +3125,18 @@ paths:
31013125
schema:
31023126
$ref: '#/components/schemas/EnvelopedError'
31033127
description: Forbidden
3128+
'402':
3129+
content:
3130+
application/json:
3131+
schema:
3132+
$ref: '#/components/schemas/EnvelopedError'
3133+
description: Payment Required
3134+
'400':
3135+
content:
3136+
application/json:
3137+
schema:
3138+
$ref: '#/components/schemas/EnvelopedError'
3139+
description: Bad Request
31043140
/v0/wallets/{wallet_id}/licensed-items-purchases:
31053141
get:
31063142
tags:
@@ -3159,6 +3195,18 @@ paths:
31593195
schema:
31603196
$ref: '#/components/schemas/EnvelopedError'
31613197
description: Forbidden
3198+
'402':
3199+
content:
3200+
application/json:
3201+
schema:
3202+
$ref: '#/components/schemas/EnvelopedError'
3203+
description: Payment Required
3204+
'400':
3205+
content:
3206+
application/json:
3207+
schema:
3208+
$ref: '#/components/schemas/EnvelopedError'
3209+
description: Bad Request
31623210
/v0/licensed-items-purchases/{licensed_item_purchase_id}:
31633211
get:
31643212
tags:
@@ -3192,6 +3240,18 @@ paths:
31923240
schema:
31933241
$ref: '#/components/schemas/EnvelopedError'
31943242
description: Forbidden
3243+
'402':
3244+
content:
3245+
application/json:
3246+
schema:
3247+
$ref: '#/components/schemas/EnvelopedError'
3248+
description: Payment Required
3249+
'400':
3250+
content:
3251+
application/json:
3252+
schema:
3253+
$ref: '#/components/schemas/EnvelopedError'
3254+
description: Bad Request
31953255
/v0/projects/{project_uuid}/checkpoint/{ref_id}/iterations:
31963256
get:
31973257
tags:

services/web/server/src/simcore_service_webserver/licenses/_licensed_items_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from ..users.api import get_user
2626
from ..wallets.api import get_wallet_with_available_credits_by_user_and_wallet
2727
from ..wallets.errors import WalletNotEnoughCreditsError
28-
from . import _licensed_items_api, _licensed_items_db
28+
from . import _licensed_items_db
2929
from ._models import LicensedItemsBodyParams
3030
from .errors import LicensedItemPricingPlanMatchError
3131

@@ -92,7 +92,7 @@ async def purchase_licensed_item(
9292
app, user_id=user_id, wallet_id=body_params.wallet_id, product_name=product_name
9393
)
9494

95-
licensed_item = await _licensed_items_api.get_licensed_item(
95+
licensed_item = await get_licensed_item(
9696
app, licensed_item_id=licensed_item_id, product_name=product_name
9797
)
9898

0 commit comments

Comments
 (0)