feat: add authorize button and defaultValue (#2152)

Signed-off-by: baihhh <2542274498@qq.com>
This commit is contained in:
Baihhh
2023-07-27 23:55:35 +08:00
committed by GitHub
parent ca47af2ee1
commit 5e4ba4f338
4 changed files with 117 additions and 44 deletions

View File

@ -6,6 +6,9 @@ info:
contact:
email: admin@casbin.org
basePath: /
schemes:
- http
- https
paths:
/.well-known/jwks:
get:
@ -2401,6 +2404,7 @@ paths:
description: The id ( owner/name ) of the webhook
required: true
type: string
default: built-in/admin
responses:
"200":
description: The Response object
@ -2418,6 +2422,7 @@ paths:
description: The owner of webhooks
required: true
type: string
default: built-in/admin
responses:
"200":
description: The Response object
@ -2425,6 +2430,8 @@ paths:
type: array
items:
$ref: '#/definitions/object.Webhook'
security:
- test_apiKey: []
/api/health:
get:
tags:
@ -3381,6 +3388,7 @@ paths:
description: The id ( owner/name ) of the webhook
required: true
type: string
default: built-in/admin
- in: body
name: body
description: The details of the webhook
@ -3541,12 +3549,6 @@ paths:
schema:
$ref: '#/definitions/controllers.Response'
definitions:
1225.0xc000333110.false:
title: "false"
type: object
1260.0xc000333140.false:
title: "false"
type: object
LaravelResponse:
title: LaravelResponse
type: object
@ -3586,9 +3588,13 @@ definitions:
type: object
properties:
data:
$ref: '#/definitions/1225.0xc000333110.false'
additionalProperties:
description: support string | class | List<class> and os on
type: string
data2:
$ref: '#/definitions/1260.0xc000333140.false'
additionalProperties:
description: support string | class | List<class> and os on
type: string
msg:
type: string
name:
@ -3615,9 +3621,6 @@ definitions:
object:
title: object
type: object
object.&{197582 0xc000ace360 false}:
title: '&{197582 0xc000ace360 false}'
type: object
object.AccountItem:
title: AccountItem
type: object
@ -3749,7 +3752,7 @@ definitions:
title: CasbinRequest
type: array
items:
$ref: '#/definitions/object.&{197582 0xc000ace360 false}'
$ref: '#/definitions/object.CasbinRequest'
object.Cert:
title: Cert
type: object
@ -5123,31 +5126,51 @@ definitions:
type: object
properties:
contentType:
default: application/json
type: string
example: application/json
createdTime:
default: "2023-07-27T17:09:12+08:00"
type: string
example: "2023-07-27T17:09:12+08:00"
events:
default: '[ddd]'
type: array
items:
type: string
headers:
default: '[]'
type: array
items:
$ref: '#/definitions/object.Header'
isEnabled:
default: true
type: boolean
example: true
isUserExtended:
default: true
type: boolean
example: true
method:
default: POST
type: string
example: POST
name:
default: test
type: string
example: test
organization:
default: built-in
type: string
example: built-in
owner:
default: built-in
type: string
example: built-in
url:
default: https://example.com/callback
type: string
example: https://example.com/callback
protocol.CredentialAssertion:
title: CredentialAssertion
type: object
@ -5192,3 +5215,11 @@ definitions:
xorm.Engine:
title: Engine
type: object
securityDefinitions:
test_apiKey:
type: apiKey
name: Authorization
in: header
externalDocs:
description: Find out more about casdoor
url: https://casdoor.org/