We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endpoint to send sms to a customer or user.
The endpoint should be accesible at /api/v1/sms/send.
/api/v1/sms/send
The endpoint should accept HTTP POST requests.
POST
The endpoint should be secured to ensure that only a user with an admin role.
admin
Proper authentication mechanisms (e.g. JWT, OAuth2) should be implemented.
Requests to the endpoint must include a valid authentication token in the Authorization header. Authorization: Bearer <token>
Authorization: Bearer <token>
Request body
{ "message": "Hey there, how are you doing", "recipient": "+2347043738436", }
Response (Success)
{ "status_code": "200", "message": "Sms sending request accepted and is being proccessed", "error": "", }
Response (Error)
{ "status_code": 401, "message": "Unauthorized", "error": "Bad Request" }
Internal Server Error
{ "status_code": 500, "message": "Internal server error", "error": "Bad Request" }
To send sms to a customer / user.
Authoirization: Bearer <token>
status_code
message
The text was updated successfully, but these errors were encountered:
EmmanuelOmoiya
No branches or pull requests
Description
Endpoint to send sms to a customer or user.
Acceptance Criteria
The endpoint should be accesible at
/api/v1/sms/send
.The endpoint should accept HTTP
POST
requests.The endpoint should be secured to ensure that only a user with an
admin
role.Proper authentication mechanisms (e.g. JWT, OAuth2) should be implemented.
Requests to the endpoint must include a valid authentication token in the Authorization header.
Authorization: Bearer <token>
Request body
Response (Success)
Response (Error)
Internal Server Error
Purpose
To send sms to a customer / user.
Requirements
Authoirization: Bearer <token>
header in the request bodyExpected Outcome
status_code
of 200 andmessage
of "Sms sending request accepted and is being proccessed"Testing
The system should have unit tests covering:
The text was updated successfully, but these errors were encountered: