Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .vitepress/data/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,38 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/user/billing/voucher-claims:
post:
tags:
- api
operationId: create_voucher_claim
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VoucherClaimCreate'
required: true
responses:
'204':
description: Voucher claimed
'400':
description: Invalid code
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'409':
description: Already subscribed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/api/v1/workspace/{workspace_id}:
get:
tags:
Expand Down Expand Up @@ -453,6 +485,13 @@ components:
type: string
updated_at:
$ref: '#/components/schemas/Timestamp'
VoucherClaimCreate:
type: object
required:
- code
properties:
code:
type: string
Workspace:
type: object
required:
Expand Down