Skip to content

Commit f3ae374

Browse files
committed
Add releaseTokenToMailbox API
This is typically only called by the browser -- but it's still handled as OpenAPI in the controller.
1 parent 72bd671 commit f3ae374

File tree

27 files changed

+1288
-5
lines changed

27 files changed

+1288
-5
lines changed

api/swagger.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,15 @@ components:
21082108
destination:
21092109
$ref: "#/components/schemas/IcebergLocalTable"
21102110

2111+
ReleaseToken:
2112+
type: object
2113+
required:
2114+
- token
2115+
properties:
2116+
token:
2117+
type: string
2118+
description: Login request token to release
2119+
21112120
paths:
21122121
/setup_comm_prefs:
21132122
post:
@@ -3244,6 +3253,33 @@ paths:
32443253
default:
32453254
$ref: "#/components/responses/ServerError"
32463255

3256+
/auth/get-token/release-token:
3257+
post:
3258+
tags:
3259+
- auth
3260+
- experimental
3261+
operationId: releaseTokenToMailbox
3262+
summary: release a token for the current (authenticated) user to the mailbox of this login request.
3263+
requestBody:
3264+
required: true
3265+
content:
3266+
application/json:
3267+
schema:
3268+
$ref: "#/components/schemas/ReleaseToken"
3269+
responses:
3270+
204:
3271+
description: token released
3272+
401:
3273+
description: bad token or user has not logged in yet
3274+
$ref: "#/components/responses/Unauthorized"
3275+
429:
3276+
description: too many requests
3277+
501:
3278+
description: not implemented in this edition.
3279+
$ref: "#/components/responses/NotImplemented"
3280+
default:
3281+
$ref: "#/components/responses/ServerError"
3282+
32473283
/repositories:
32483284
get:
32493285
tags:

clients/java/README.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/java/docs/AuthApi.md

Lines changed: 93 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/java/docs/ExperimentalApi.md

Lines changed: 93 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)