docs-archive/apache-airflow-providers-fab/2.0.2/_specs/v1-fab-auth-manager-generated.yaml (153 lines of code) (raw):
openapi: 3.1.0
info:
title: FAB auth manager API
description: This is FAB auth manager API. This API is only available if the auth
manager used in the Airflow environment is FAB auth manager. This API provides
endpoints to manage users and permissions managed by the FAB auth manager.
version: 0.1.0
paths:
/token:
post:
tags:
- FabAuthManager
summary: Create Token
description: Generate a new API token.
operationId: create_token
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LoginBody'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LoginResponse'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/token/cli:
post:
tags:
- FabAuthManager
summary: Create Token Cli
description: Generate a new CLI API token.
operationId: create_token_cli
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/LoginBody'
required: true
responses:
'201':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LoginResponse'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPExceptionResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPExceptionResponse:
properties:
detail:
anyOf:
- type: string
- additionalProperties: true
type: object
title: Detail
type: object
required:
- detail
title: HTTPExceptionResponse
description: HTTPException Model used for error response.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
LoginBody:
properties:
username:
type: string
title: Username
password:
type: string
title: Password
type: object
required:
- username
- password
title: LoginBody
description: API Token serializer for requests.
LoginResponse:
properties:
access_token:
type: string
title: Access Token
type: object
required:
- access_token
title: LoginResponse
description: API Token serializer for responses.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError