ShareFoodApi is backend written in php using mysql backend.
One can post food photos, description about food along with time/date of expiry.
There are thousands of people out there starving... This API is written with intension, if someone could use this and create an interface where atleast one of thousands can get food.
You access via POSTMAN too https://documenter.getpostman.com/view/12807879/TVKD1x7Y
- Please host share_food_api in your hosting environment
- Setup your mysql using the SQL_dump.sql file
- Add your credentials in db_connect_host_credentials.php
You may also use the following API hosted at http://teatalk.one/share_food_api
Here you go. Now start using the following APIs and create beautiful and usefull apps.
fetch user profile
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | fetchuserprofilerequest |
Code | Description |
---|---|
200 |
login
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | loginrequest |
Code | Description |
---|---|
200 |
signup
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | signuprequest |
Code | Description |
---|---|
200 |
approve food item request
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | approvefooditemrequestrequest |
Code | Description |
---|---|
200 |
unbook food item
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | unbookfooditemrequest |
Code | Description |
---|---|
200 |
book food item
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | bookfooditemrequest |
Code | Description |
---|---|
200 |
request for booking food item
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | requestforbookingfooditemrequest |
Code | Description |
---|---|
200 |
reject food item request
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | rejectfooditemrequestrequest |
Code | Description |
---|---|
200 |
report abusing content
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | reportabusingcontentrequest |
Code | Description |
---|---|
200 |
mark food item is taken
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | markfooditemistakenrequest |
Code | Description |
---|---|
200 |
delete food item permanently
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | deletefooditempermanentlyrequest |
Code | Description |
---|---|
200 |
check login credentials already exist
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | checklogincredentialsalreadyexistrequest |
Code | Description |
---|---|
200 |
fetch food item details
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | fetchfooditemdetailsrequest |
Code | Description |
---|---|
200 |
fetch food items of paticular user
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | fetchfooditemsofpaticularuserrequest |
Code | Description |
---|---|
200 |
fetch all food items
Name | Located in | Description | Required | Schema |
---|
Code | Description |
---|---|
200 |
upload image
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
file | formData | Yes | string |
Code | Description |
---|---|
200 |
add food item
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
Body | body | Yes | addfooditemrequest |
Code | Description |
---|---|
200 |
Name | Type | Description | Required |
---|---|---|---|
phonenumber | string | Yes |
Example
{ "phonenumber": "7083101608" }
Name | Type | Description | Required |
---|---|---|---|
username | string | Yes | |
string | Yes | ||
phonenumber | string | Yes |
Example
{ "username": "kevin", "email": "[email protected]", "phonenumber": "8149002679" }
Name | Type | Description | Required |
---|---|---|---|
username | string | Yes | |
string | Yes | ||
phonenumber | string | Yes |
Example
{ "username": "kevin", "email": "[email protected]", "phonenumber": "8149002679" }
Name | Type | Description | Required |
---|---|---|---|
uniqueid | string | Yes | |
phonenumber | string | Yes |
Example
{ "uniqueid": "1479084051", "phonenumber": "8149002679" }
Name | Type | Description | Required |
---|---|---|---|
uniqueid | string | Yes | |
phonenumber | string | Yes |
Example
{ "uniqueid": "1479084051", "phonenumber": "8149002679" }
Name | Type | Description | Required |
---|---|---|---|
uniqueid | string | Yes | |
bookie_phonenumber | string | Yes |
Example
{ "uniqueid": "1479084051", "bookie_phonenumber": "8149002679" }
Name | Type | Description | Required |
---|---|---|---|
uniqueid | string | Yes | |
bookie_phonenumber | string | Yes |
Example
{ "uniqueid": "1479084108", "bookie_phonenumber": "8149002679" }
Name | Type | Description | Required |
---|---|---|---|
uniqueid | string | Yes | |
phonenumber | string | Yes |
Example
{ "uniqueid": "1479084108", "phonenumber": "8149002675" }
Name | Type | Description | Required |
---|---|---|---|
uniqueid | string | Yes |
Example
{ "uniqueid": "1479084108" }
Name | Type | Description | Required |
---|---|---|---|
uniqueid | string | Yes |
Example
{ "uniqueid": "1479971240" }
Name | Type | Description | Required |
---|---|---|---|
uniqueid | string | Yes |
Example
{ "uniqueid": "1479084051" }
Name | Type | Description | Required |
---|---|---|---|
phonenumber | string | Yes |
Example
{ "phonenumber": "8149002679" }
Name | Type | Description | Required |
---|---|---|---|
uniqueid | string | Yes |
Example
{ "uniqueid": "1479084051" }
Name | Type | Description | Required |
---|---|---|---|
phonenumber | string | Yes |
Example
{ "phonenumber": "8149002679" }
Name | Type | Description | Required |
---|---|---|---|
name | string | Yes | |
itemname | string | Yes | |
uniqueid | integer | Yes | |
reportedabuse | integer | Yes | |
phonenumber | string | Yes | |
alternate_phonenumber | string | Yes | |
string | Yes | ||
description | string | Yes | |
istaken | integer | Yes | |
isbooked | integer | Yes | |
uploaddate | string | Yes | |
address | string | Yes | |
lat | double | Yes | |
lng | double | Yes | |
is_regular | integer | Yes | |
mon | integer | Yes | |
tue | integer | Yes | |
wed | integer | Yes | |
thur | integer | Yes | |
fri | integer | Yes | |
sat | integer | Yes | |
sun | integer | Yes | |
is_needy | integer | Yes | |
serves_count | integer | Yes | |
pickat_date | integer | Yes | |
pickby_date | integer | Yes | |
ispending | integer | Yes | |
bookiePhonenumber | string | Yes | |
image_name | string | Yes | |
food_type | integer | Yes | |
expiry_date | integer | Yes |
Example
{ "name": "kevinvishal777", "itemname": "Biryani fish", "uniqueid": 1479084122, "reportedabuse": 0, "phonenumber": "8134343256", "alternate_phonenumber": "7676543234", "email": "[email protected]", "description": "Birayani for all", "istaken": 0, "isbooked": 0, "uploaddate": "", "address": "C. A. Siteno. 40, I Phase, J P Nagar, Gaurav Nagar, JP Nagar 7th Phase, JP Nagar, Bengaluru, Karnataka 560078, India", "lat": 12.8873185, "lng": 77.5780751, "is_regular": 0, "mon": 0, "tue": 0, "wed": 0, "thur": 0, "fri": 0, "sat": 0, "sun": 0, "is_needy": 0, "serves_count": 2, "pickat_date": 1479127260, "pickby_date": 1479129072, "ispending": 0, "bookiePhonenumber": "8149002674", "image_name": "1479084108_file.png", "food_type": 1, "expiry_date": 0 }