Revived API /api/v1/captcha.
Now a new captcha is created to check for a bot.
This commit is contained in:
@@ -157,20 +157,42 @@
|
||||
"Captcha": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"image_base64": {
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
"image_head": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Image",
|
||||
}
|
||||
},
|
||||
"image_text_base64": {
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
"image_body": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Image"
|
||||
}
|
||||
},
|
||||
"captcha_key": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"image_base64", "image_text_base64", "captcha_key"
|
||||
"image_head", "image_body", "captcha_key"
|
||||
]
|
||||
},
|
||||
"Image": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"base64": {
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
},
|
||||
"width": {
|
||||
"type": "integer"
|
||||
},
|
||||
"height": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"base64", "width", "height"
|
||||
]
|
||||
},
|
||||
"CaptchaVerification": {
|
||||
|
Reference in New Issue
Block a user