Skip to content
Open
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
33 changes: 32 additions & 1 deletion api-admin/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ paths:
500:
description: Something went wrong

"/oauth/settings.get":
post:
operationId: oauthSettingsGet
tags: [OAuth]
description: Get settings for oauth requests
responses:
200:
$ref: "#/components/responses/OAuthSettingsGet"
500:
description: Something went wrong

"/session/create":
post:
operationId: sessionCreate
Expand Down Expand Up @@ -239,7 +250,15 @@ components:
- "invalid_payload"
- "redirect_uri_claimed"


OAuthSettingsGet:
description: Settings exist
content:
application/json:
schema:
properties:
settings:
$ref: "#/components/schemas/OauthSettings"

SessionCreateSucceeded:
description: Session created, token wrote to cookies
content:
Expand Down Expand Up @@ -394,6 +413,18 @@ components:
type: boolean

schemas:
OAuthSettings:
description: Settings for OAuth requests
type: object
properties:
required:
- redirectUri
- clientId
redirectUri:
type: string
clientId:
type: string

SessionUser:
description: Current user in a session
type: object
Expand Down