done with SMS

This commit is contained in:
lennyaiko
2025-03-27 12:30:45 +01:00
parent 6bb84fed78
commit 9bde3984a7
2 changed files with 39 additions and 0 deletions
+17
View File
@@ -42,3 +42,20 @@ def status_call():
}
return jsonify(response), 200
@auth_bp.route("/sms", methods=["POST"])
def sms():
data = request.json
api_url = f"{current_app.config['API_BASE_URL']}/SMS"
# response = requests.post(api_url, json=data, headers=get_headers())
# return jsonify(response.json()), response.status_code
response = {
"data": "",
"statusCode": 200,
"IsSuccessful": True,
"errorMessage": None,
}
return jsonify(response), 200
+22
View File
@@ -52,6 +52,28 @@ paths:
responses:
200:
description: A successful response
/sms:
post:
summary: Send a SMS
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
example: "This is a test message for SMS request method."
dest:
type: string
example: "+2348039409144"
unicode:
type: boolean
example: false
responses:
200:
description: A successful response
/eligibility/check:
post:
summary: Performs eligibility check on a user