MubarkiaMap
| API | Description |
|---|---|
| GET API/MubarkiaMap/MubarkiaMap?key={key}&PageIndex={PageIndex} |
- Wrong Key -9 - Error: return -1 |
Produts
Countries
| API | Description |
|---|---|
| GET API/Countries/GetCountry?key={key} |
Get Country |
DevicesTokens
| API | Description |
|---|---|
| POST API/DevicesTokens/AddToken?key={key} |
No documentation available. |
| POST API/DevicesTokens/AddTokenForAndroid?key={key} |
No documentation available. |
Advertisment
| API | Description |
|---|---|
| GET API/Advertisment/GetHomeSlider?shopId={shopId}&key={key} |
- Wrong Key -9 - Error: return -1 |
| GET API/Advertisment/GetHomeSlider2?shopId={shopId}&key={key} |
- Wrong Key -9 - Error: return -1 |
| GET API/Advertisment/GetAdvertisment?AdsId={AdsId}&ShowPlaceId={ShowPlaceId}&AdsTypeid={AdsTypeid}&CategoryId={CategoryId}&key={key} |
No documentation available. |
Users
UsersController
| API | Description |
|---|---|
| GET API/Users/RegisterForMubarakiya |
No documentation available. |
| POST API/Users/Register?key={key}&deviceToken={deviceToken} |
UserType 1 for Normal User, 2 for Merchant Number greater than 0 (user id) -> Success -2 -> Required field is empty -3 -> Phone exist -4 -> Email exist -5 -> Username exist -1 -> Error |
| GET API/Users/LoginByUserName?userName={userName}&password={password}&deviceToken={deviceToken}&key={key} |
Number greater than 0 (user id) -> Success -2 -> Required field is empty -3 -> Not exist -4 -> Wrong password-5 -> Not activated -1 -> Error |
| GET API/Users/GetUserById?userId={userId}&key={key} |
-2 -> Required field is empty -3 -> User not exist -1 -> Error -9 -> wrong Key |
| POST API/Users/Logout?userId={userId}&deviceToken={deviceToken}&key={key} |
Number greater than 0 (user id) -> Success -2 -> Required field is empty -1 -> Error |
| POST API/Users/ForgetPassword?Email={Email}&key={key} |
1 -> Success -2 -> Email is empty -3 -> Not exist -1 -> Error |
| POST API/Users/EditUser?key={key} |
Number greater than 0 (user id) -> Success -2 -> Required field is empty -3 -> UserName exist -4 -> mobile already exists -5 -> Email exist -1 -> Error BirthDate format will be like '04/20/2018'You can set password with blank if you do not want to update. |
| POST API/Users/ChangePassword?userId={userId}&oldPassword={oldPassword}&password={password}&key={key} |
Number greater than 0 (user id) -> Success -2 -> Required field is empty -3 -> User not exist -4 -> Password wrong -1 -> Error |
| POST API/Users/Deactivate?userId={userId}&password={password}&key={key} |
Number greater than 0 (user id) -> Success -2 -> Required field is empty -3 -> User not exist -4 -> Password wrong -1 -> Error |
PaymentMethods
| API | Description |
|---|---|
| GET API/PaymentMethods/GetPaymentMethods?key={key} |
General
| API | Description |
|---|---|
| GET API/General/ImportantNumber?key={key}&PageIndex={PageIndex} |
- Success: return list of mubarkiaImportantNumber - Wrong Key -9 - Error: return -1 |
| GET API/General/SellDetails?key={key} |
Get all general settings. |
| GET API/General/colors?key={key} |
Get all general settings. |
| GET API/General/GetSettings?key={key} |
Get all general settings. |
| GET API/General/AboutMubarkia?key={key} |
- Success: return list of AboutMubarkiaiteemlist - Wrong Key -9 - Error: return -1 |
| GET API/General/MubarkiaContactUs?key={key} |
- Success: return list of AboutMubarkiaiteemlist - Wrong Key -9 - Error: return -1 |
| GET API/General/SendContactUsEmail?key={key}&name={name}&mail={mail}&message={message} |
1 >> operaton completed successfully -1 > operation filed |
| GET API/General/MubarkiaHome?key={key} |
slider in the first home page -1 when no data exist |
Categories
| API | Description |
|---|---|
| GET API/Categories/GetCategories?key={key}&Type={Type}&PageIndex={PageIndex}&ShownIn={ShownIn} |
categoryType=1 > mainCategory , categoryType=2 > other Category -Wrong Key 9 - Error: return -1 |
Offers
| API | Description |
|---|---|
| GET API/Offers/GetOffers?OfferId={OfferId}&countryId={countryId}&pageIndex={pageIndex}&key={key} |
Shops
| API | Description |
|---|---|
| GET API/Shops/GetShop?key={key}&shop_id={shop_id}&userid={userid}&IsSpecial={IsSpecial}&ShownIn={ShownIn} |
- Wrong Key return -9 - No data meet passed parameter -2 - No data meet passed parameter -2 - Error: return -1 |
| GET API/Shops/GetShopsUnderCategory?key={key}&_CategoryId={_CategoryId}&PageIndex={PageIndex}&keyword={keyword}&type={type}&userid={userid}&SellType={SellType}&ShownIn={ShownIn} |
- Wrong Key return -9 - No data meet passed parameter -2 - Error: return -1 |
| GET API/Shops/MakeShopFavorite?key={key}&shopId={shopId}&userId={userId} |
1 >> this shop become in user favorit List successfully 0 >> this shop become unfavorit for user -2 >> No data meet passed parameter -9 >> Wrong Key -3 >> This shop does not exist -4 >> This user does not exist - Error: return -1 /// |
| GET API/Shops/MyFavorites?key={key}&userId={userId} |
- Wrong Key return -9 - Error: return -1 |
| POST API/Shops/DeleteShopPhoto |
- Error: return -1 - Wrong Key -9 |
| POST API/Shops/DeleteadsPhoto |
- Wrong Key -9 - Error: return -1 |
Files
| API | Description |
|---|---|
| POST API/Files/UploadPhoto?key={key}&path={path} |
Upload Post Photo. |
| POST API/Files/UploadAnyPhoto?key={key}&Path={Path} |
No documentation available. |
| POST API/Files/DeletePhoto?key={key}&file={file} |
Upload Post Photo. |
| POST API/Files/DeleteAnyPhoto?key={key}&Path={Path}&file={file} |
Upload Post Photo. |
| POST API/Files/DeleteShopPhoto | |
| POST API/Files/DeleteadsPhoto |
Areas
| API | Description |
|---|---|
| GET API/Areas/GetAreas?CityId={CityId}&key={key} |
ContentPages
| API | Description |
|---|---|
| GET API/ContentPages/GetCPages?pageId={pageId}&key={key} |
Set pageId with 0 to get all pages. 1 => About Us page 2 => FAQ page 3 => Terms page 4 => Policy page |
Orders
Cities
| API | Description |
|---|---|
| GET API/Cities/GetCities?CountryId={CountryId}&key={key} |
if CountyId equal zero will return all cities |