- Download Xampp.
- Open Xampp. Start Apache and Mysql.
- Download this zip file .
https://github.com/Rafatlne/DIU-FREE-ROOM-API/archive/master.zip
- Extract that zip file on
C:\xampp\htdocs
- Open cmd and write ipconfig.
- Copy IPV4 address.
7. To read all of data from Database or for _GET request use this end point
http://localhost/RoomBooks/api/room/read.php
- Replace localhost with your ip address. link will be something like this:
http://192.168.0.102/RoomBooks/api/room/read.php
- If you got json in browser,you can use that link as your GET request.
10.Read all data from database use this end point or _POST request use this end point
http://localhost/RoomBooks/api/room/update.php
- For update(_POST) in database send JSON like this
{
"id": 1,
"isbooked": "lel",
"contact_no" : "01571717171",
"courseCode": "lel"
}
- Replace localhost with your ip address. link will be something like this:
http://192.168.0.102/RoomBooks/api/room/update.php