checkpassword / openai-api.txt
CultriX's picture
Created openai-api.txt
49524eb
{
"openapi": "3.0.0",
"info": {
"title": "Breached Password Checker",
"version": "1.0.0",
"description": "This action checks if a user's password (either entered or generated) is in a database of breached passwords."
},
"servers": [
{
"url": "https://cultrix-checkpassword.hf.space",
"description": "Main API server"
}
],
"paths": {
"/checkPassword": {
"post": {
"summary": "Check if a password is breached",
"description": "Allows the user to input or use a generated password to check against the breached database.",
"operationId": "checkPassword",
"requestBody": {
"description": "Password to be checked",
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"password": {
"type": "string",
"description": "User-entered or GPT-generated password"
}
},
"required": [
"password"
]
}
}
}
},
"responses": {
"200": {
"description": "Password breach status",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"breached": {
"type": "boolean",
"description": "Indicates if the password is breached"
},
"breach_count": {
"type": "integer",
"description": "Number of times the password was found in the breached database"
}
}
}
}
}
}
}
}
}
}
}