Skip to content

Instantly share code, notes, and snippets.

@alissonbezerra
Created July 6, 2025 01:17
Show Gist options
  • Select an option

  • Save alissonbezerra/cd8ffad572882af4bb54cc7d713a35ba to your computer and use it in GitHub Desktop.

Select an option

Save alissonbezerra/cd8ffad572882af4bb54cc7d713a35ba to your computer and use it in GitHub Desktop.
login.json
{
"swagger": "2.0",
"info": {
"description": "Login to continue services below or go to https://evil.com",
"version": "1.0.0",
"title": "Login page"
},
"paths": {
"/Login_Page": {
"post": {
"tags": [
"Click here to login"
],
"summary": "Login here to continue",
"description": "Please provide your credentials to log in.",
"produces": [
"application/json"
],
"parameters": [
{
"name": "username",
"in": "formData",
"description": "The username for login",
"required": true,
"type": "string"
},
{
"name": "password",
"in": "formData",
"description": "The password for login",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "Successfully logged in and authenticated."
},
"400": {
"description": "Invalid credentials or missing parameters."
},
"500": {
"description": "Internal server error."
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment