By Thierno Abdoul Rahimi Diallo [email protected]
To run this project it you most have an apache serverinstall on your computer.
After unzipping sliverStreet_assignment_by_rahimi
or cloning from the git repository https://github.com/tard916/sliverStreet_assignment_by_rahimi.git
cd sliverStreet_assignment_by_rahimi
in the sliverStreet_assignment_by_rahimi folder you will:
- The api folder which hold the the rest api
- The config folder which hold the configuration part for the php
- The db folder which hold an exported file of the database in json format.
- The models folder which hold the model used to create sms and email object.
- Go
cd sliverStreet_assignment_by_rahimi
- In phpMyadmin create a database named
sabr
and then import the database file from theDB
folder. - Change the
username
andpassword
in the config folderDatabase.php
file to your username and password.
- SMS endPoint
-
List all messages:
http://localhost:8080/sliverStreet_assignment_by_rahimi/api/sms/smsSummary.php
. -
Consume SMS:
http://localhost:8080/sliverStreet_assignment_by_rahimi/api/sms/consumeSms.php?id=5
-
Input SMS:
http://localhost:8080/sliverStreet_assignment_by_rahimi/api/sms/inputSms.php
for this part i use postman to test the api and i passed the data to the body as json forma.{ "sender": "0178819454", "sms_content": "this is the first test for smsSummary." }
-
HTML Page:
http://localhost:8080/sliverStreet_assignment_by_rahimi/
- EMAIL endPoint
-
List all messages:
http://localhost:8080/sliverStreet_assignment_by_rahimi/api/email/emailSummary.php
. -
Consume SMS:
http://localhost:8080/sliverStreet_assignment_by_rahimi/api/email/consumeEmail.php?id=5
need to pass the id. -
Input SMS:
http://localhost:8080/sliverStreet_assignment_by_rahimi/api/email/inputEmail.php
for this part i use postman to test the api and i passed the data to the body as json forma.{ "sender": "[email protected]", "sms_content": "this is the first test for emailSummary." }
We can messages through the API http://localhost:8080/sliverStreet_assignment_by_rahimi/addMessages.php
.