diff --git a/app/routes/authentication.py b/app/routes/authentication.py index 4fe5726..cba8777 100644 --- a/app/routes/authentication.py +++ b/app/routes/authentication.py @@ -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 diff --git a/openapi.yml b/openapi.yml index 20e7c77..19112cd 100644 --- a/openapi.yml +++ b/openapi.yml @@ -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