swagger fix

This commit is contained in:
CHIEFSOFT\ameye
2025-06-22 21:35:02 -04:00
parent 7e0248e0a4
commit 0e79753d27
4 changed files with 86 additions and 4 deletions
+2 -2
View File
@@ -69,7 +69,7 @@
"$ref": "swagger/paths/Login.json"
},
"/panel/Register": {
"$ref": "swagger/paths/SelectOffer.json"
"$ref": "swagger/paths/Register.json"
}
},
"components": {
@@ -81,7 +81,7 @@
"$ref": "swagger/schemas/LoginResponse.json"
},
"Register": {
"$ref": "swagger/schemas/SelectOfferRequest.json"
"$ref": "swagger/schemas/RegisterRequest.json"
},
"RegisterResponse": {
"$ref": "swagger/schemas/RegisterResponse.json"
+2 -2
View File
@@ -3,11 +3,11 @@
"tags": [
"Login"
],
"summary": "Start the process - initiate steps to eligibility RAC Checks ",
"summary": "Start the process - initiate steps to Login ",
"description": "Initiate Login Request",
"operationId": "startLogin",
"requestBody": {
"description": "Post JSON to conduct eligibility tests",
"description": "Post JSON to conduct login request",
"content": {
"application/json": {
"schema": {
+57
View File
@@ -0,0 +1,57 @@
{
"post": {
"tags": [
"Register"
],
"summary": "Start the process - initiate steps Registeration ",
"description": "Initiate Register Request",
"operationId": "startRegister",
"requestBody": {
"description": "Post JSON to conduct Registeration",
"content": {
"application/json": {
"schema": {
"$ref": "../schemas/RegisterRequest.json"
}
},
"application/xml": {
"schema": {
"$ref": "../schemas/RegisterRequest.json"
}
},
"application/x-www-form-urlencoded": {
"schema": {
"$ref": "../schemas/RegisterRequest.json"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Successful operation",
"content": {
"application/json": {
"schema": {
"$ref": "../schemas/RegisterResponse.json"
}
},
"application/xml": {
"schema": {
"$ref": "../schemas/RegisterResponse.json"
}
}
}
},
"400": {
"description": "Invalid request"
},
"422": {
"description": "Validation exception"
},
"500": {
"description": "Internal server error"
}
}
}
}
+25
View File
@@ -0,0 +1,25 @@
{
"type": "object",
"properties": {
"email": {
"type": "string",
"example": "email"
},
"firstname": {
"type": "string",
"example": "firstname"
},
"lastname": {
"type": "string",
"example": "lastname"
},
"isChecked": {
"type": "string",
"example": "True"
}
},
"xml": {
"name": "RegisterRequest"
}
}