Employees(eid,name,designation,salary,doa,mobile,photo)
GET, POST
GET all records: https://api.webroot.net.in/employees.php
GET 1 record: https://api.webroot.net.in/employees.php?eid=1
POST : https://api.webroot.net.in/employees.php
Request: {
"eid": "102",
"name": "Suresh Kumar",
"designation": "Executive",
"salary": "15800",
"doa": "2021-11-02",
"mobile": "8528963698",
"photo": "p2.jpg"
}
Response: {"status":"OK"} or {"status":"Error"}
POST(To Update Data) : https://api.webroot.net.in/employees.php?opr=U
Request: {
"eid": "102",
"name": "Suresh Kumar",
"designation": "Executive",
"salary": "15800",
"doa": "2021-11-02",
"mobile": "8528963698",
"photo": "p2.jpg"
}
Response: {"status":"OK"} or {"status":"Error"}
POST(To Delete Data) : https://api.webroot.net.in/employees.php?opr=D&eid=102
Response: {"status":"OK"} or {"status":"Error"}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
MEMBERS(EMAIL,UPASS,FNAME,LNAME,MOBILE,ADDRESS ,COUNTRY,STATE,CITY,PINCODE)
GET, POST
GET 1 record: https://api.webroot.net.in/members.php?email=abc@xyaz.com&upass=12343ABC
if valid details returns the all details of the member otherwise {"status":"Empty"}
POST : https://api.webroot.net.in/members.php
Request: {
"email": "abc@xya.com",
"upass": "1233333",
"fname": "Akshay",
"lname": "Kumar",
"mobile": "9879879879",
"country": "India",
"state": "Uttar Pradesh",
"city": "Meerut",
"pincode": "250002",
}
Response: {"status":"OK"} or {"status":"Error"}
POST(To Update Data) : https://api.webroot.net.in/members.php?opr=U
Request: {
"email": "abc@xya.com",
"upass": "1233333",
"fname": "Akshay",
"lname": "Kumar",
"mobile": "9879879879",
"country": "India",
"state": "Uttar Pradesh",
"city": "Meerut",
"pincode": "250002",
}
Response: {"status":"OK"} or {"status":"Error"}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
GET(To Delete Data) : https://api.webroot.net.in/members.php?opr=U&email=san@yahoo.com
Response: {"status":"OK"} or {"status":"Error"}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This is delayed function
GET record: https://api.webroot.net.in/checkmember.php?email=abc@xyaz.com
if email exists {"status":"Yes} otherwise {"status":"No"}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Categories(cid,cname,details,photo)
GET, POST
GET all records: https://api.webroot.net.in/categories.php
GET 1 record: https://api.webroot.net.in/categories.php?cid=1
POST : https://api.webroot.net.in/categories.php
Request: {
"cid": "102",
"came": "Dairy Products",
"details": "All types of Items",
"photo": "p2.jpg"
}
Response: {"status":"OK"} or {"status":"Error"}
POST(To Update Data) : https://api.webroot.net.in/categories.php?opr=U
Request: {
"cid": "102",
"came": "Dairy Products",
"details": "All types of Items",
"photo": "p2.jpg"
}
Response: {"status":"OK"} or {"status":"Error"}
POST(To Delete Data) : https://api.webroot.net.in/categories.php?opr=D&cid=102
Response: {"status":"OK"} or {"status":"Error"}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Products(pid,cid,pname,price,details,photo)
GET, POST
GET all records: https://api.webroot.net.in/products.php
GET 1 record: https://api.webroot.net.in/products.php?pid=1
POST : https://api.webroot.net.in/products.php
Request: {
"pid": "1",
"cid": "102",
"pame": "Cake",
"price":15,
"details": "Britannia Cake",
"photo": "p2.jpg"
}
Response: {"status":"OK"} or {"status":"Error"}
POST(To Update Data) : https://api.webroot.net.in/products.php?opr=U
Request: {
"pid": "1",
"cid": "102",
"pame": "Cake",
"price":15,
"details": "Britannia Cake",
"photo": "p2.jpg"
}
Response: {"status":"OK"} or {"status":"Error"}
POST(To Delete Data) : https://api.webroot.net.in/products.php?opr=D&pid=102
Response: {"status":"OK"} or {"status":"Error"}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Countries(cid,cname,isoname)
GET all records: https://api.webroot.net.in/countries.php
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
States(sid,sname)
GET
GET all records: https://api.webroot.net.in/states.php?isoname=India