mirror of
https://github.com/twofas/2fas-server.git
synced 2024-12-25 02:20:43 +01:00
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
openapi: 3.0.3
|
|
info:
|
|
title: 2FAS Websocket API
|
|
version: 0.0.1
|
|
|
|
servers:
|
|
- url: wss://ws.2fas.com/
|
|
|
|
paths:
|
|
/health:
|
|
get:
|
|
summary: Health check endpoint.
|
|
tags:
|
|
- websocket
|
|
responses:
|
|
'200':
|
|
description: Application is healthy
|
|
|
|
/browser_extensions/{extensionId}:
|
|
get:
|
|
summary: Main subscription channel for browser extension.
|
|
tags:
|
|
- websocket
|
|
parameters:
|
|
- name: extensionId
|
|
in: path
|
|
required: true
|
|
description: The ID of browser extension.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
responses:
|
|
'200':
|
|
description: Browser subscribed to channel.
|
|
|
|
/browser_extensions/{extensionId}/2fa_requests/{tokenRequestId}:
|
|
get:
|
|
summary: Subscription channel for browser extension 2fa request.
|
|
tags:
|
|
- websocket
|
|
parameters:
|
|
- name: extensionId
|
|
in: path
|
|
required: true
|
|
description: The ID of browser extension.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
- name: tokenRequestId
|
|
in: path
|
|
required: true
|
|
description: The ID of browser extension 2fa request.
|
|
schema:
|
|
type: string
|
|
format: uuid
|
|
responses:
|
|
'200':
|
|
description: Browser subscribed to channel. |