https://github.com/eyrafabdullayev/smschecker
The function of the application is add a new sms to the db and constantly check unprocessed sms and send these to the appropriate clients.
https://github.com/eyrafabdullayev/smschecker
multithreading sms-client sms-service smschecker spring spring-boot spring-data-jpa spring-web
Last synced: 6 months ago
JSON representation
The function of the application is add a new sms to the db and constantly check unprocessed sms and send these to the appropriate clients.
- Host: GitHub
- URL: https://github.com/eyrafabdullayev/smschecker
- Owner: eyrafabdullayev
- Created: 2020-10-09T09:47:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-10T09:20:40.000Z (about 5 years ago)
- Last Synced: 2025-04-09T23:49:52.678Z (6 months ago)
- Topics: multithreading, sms-client, sms-service, smschecker, spring, spring-boot, spring-data-jpa, spring-web
- Language: Java
- Homepage:
- Size: 36.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# smschecker
The function of the application is add a new sms to the db and constantly check unprocessed
sms and send these to the appropriate clients.### Client side:
GET: /sms/send?msisdn={msisdn}&sender={senderName}&text={messageBody}Response: \
Success (200):
{
“code”: 0 ,
“message”: “OK”
} \
Fail (500):
{
“code”: 1,
“message”: “FAIL”
}### Server side:
POST: /send \
Parameters: (They are same with db columns) \
msisdn : string. Validate this msisdn that fit with msisdn format.
Msisdn format: start with 994 then(10 or 50 or 51 or 55 or 60 or 70 or 77 or 99 ) then 7 digits.\
senderName : string \
messageBody : string \Response: \
HTTP response (success): 201 (Created) \
HTTP response (fail): 500 (Internal server error)## Running
``$ docker run -i -p 8080:8080 eyrafabdullayev/smschecker:latest ``