urmar-api-client v1.0.6
urmar_web_api
UrmarWebApi - JavaScript client for urmar_web_api No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.6.0
- Package version: 1.0.6.0
- Build package: io.swagger.codegen.v3.generators.javascript.JavaScriptClientCodegen
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install urmar_web_api --save
git
If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
var UrmarWebApi = require('urmar_web_api');
var defaultClient = UrmarWebApi.ApiClient.instance;
// Configure API key authorization: Bearer
var Bearer = defaultClient.authentications['Bearer'];
Bearer.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.apiKeyPrefix['Authorization'] = "Token"
var api = new UrmarWebApi.AuthApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.authLocationGet(callback);
Documentation for API Endpoints
All URIs are relative to /
Class | Method | HTTP request | Description |
---|---|---|---|
UrmarWebApi.AuthApi | authLocationGet | GET /Auth/Location | |
UrmarWebApi.AuthApi | authLocationIdDelete | DELETE /Auth/Location/{id} | Kullanıcının tanımlı adreslerinden bir tanesini siler |
UrmarWebApi.AuthApi | authLocationPost | POST /Auth/Location | Kullanıcı adreslerine eklenir |
UrmarWebApi.AuthApi | authLoginPost | POST /Auth/Login | Eposta veya telefon numarası |
UrmarWebApi.AuthApi | authRefreshLoginPost | POST /Auth/RefreshLogin | Erişim geçerliyken yeni token oluşturur |
UrmarWebApi.AuthApi | authRegisterConfirmPost | POST /Auth/RegisterConfirm | |
UrmarWebApi.AuthApi | authRegisterPost | POST /Auth/Register | |
UrmarWebApi.AuthApi | authSecretRoleNamePost | POST /Auth/SecretRole/{name} | Gizli roller için token alımı |
UrmarWebApi.AuthApi | authSelfGet | GET /Auth/Self | |
UrmarWebApi.BotApi | appBotBasketGet | GET /App/Bot/Basket | Henüz onay verilmemiş aktif siparişi döndürür. Sipariş içerikleri ile birlikte |
UrmarWebApi.BotApi | appBotFlushBasketPost | POST /App/Bot/FlushBasket | Henüz onay verilmemiş aktif siparişi temizler |
UrmarWebApi.BotApi | appBotItemDelete | DELETE /App/Bot/Item | Sepetten ürünü siler |
UrmarWebApi.BotApi | appBotItemPost | POST /App/Bot/Item | Ürün ekleme, eğer sepet boşsa yeni order oluşturulur ve sadece o satıcıdan sipariş edilebilir |
UrmarWebApi.BotApi | appBotItemPut | PUT /App/Bot/Item | Ürün adet sayısı günceller |
UrmarWebApi.BotApi | appBotLoginPost | POST /App/Bot/Login | 400 Hesap doğrulanmamış 404 Kullanıcı kayıtlı değil 200 dönerse giriş başarılı |
UrmarWebApi.BotApi | appBotOrdersGet | GET /App/Bot/Orders | Son 5 siparişi döndürür. (Aktif olan sipariş dahil) Sipariş içerikleri ile birliklte |
UrmarWebApi.BotApi | appBotPrepareOrderPost | POST /App/Bot/PrepareOrder | Sepetteği ürünleri toplar, fiyatı günceller |
UrmarWebApi.BotApi | appBotReOrderPost | POST /App/Bot/ReOrder | Eski siparişi tekrar sepete ekler, Sepetin boş olmaması durumunda eskisi silinir |
UrmarWebApi.BotApi | appBotRegisterConfirmPost | POST /App/Bot/RegisterConfirm | |
UrmarWebApi.BotApi | appBotRegisterPost | POST /App/Bot/Register | Kullanıcıya sms ile doğrulama kodu gönderilir |
UrmarWebApi.BotApi | appBotSendOrderPost | POST /App/Bot/SendOrder | Eğer aktif bir sipariş varsa onaylar ve satıcıya iletilir. |
UrmarWebApi.BotApi | appBotServicesGet | GET /App/Bot/Services | Sepette ekli olan satıcının hizmet sağladığı servisler |
UrmarWebApi.BotApi | appBotTakeServicePost | POST /App/Bot/TakeService | Sepetteki ürünlere göre firmanın servis yapacağı en uygun tarifeyi döndürür |
UrmarWebApi.BotApi | appBotUserLocationDelete | DELETE /App/Bot/UserLocation | Kullanıcının tanımlı adresini siler |
UrmarWebApi.BotApi | appBotUserLocationGet | GET /App/Bot/UserLocation | Kullanıcının tüm lokasyonlarını dündürür |
UrmarWebApi.BotApi | appBotUserLocationPost | POST /App/Bot/UserLocation | Kullanıcı adreslerine eklenir |
UrmarWebApi.BotApi | appBotUserLocationPut | PUT /App/Bot/UserLocation | Kullanıcının ilgili lokasyonlanunu günceller |
UrmarWebApi.CategoryApi | categoryActiveGet | GET /Category/active | |
UrmarWebApi.CategoryApi | categoryGet | GET /Category | |
UrmarWebApi.DeliverytypeApi | deliverytypeGet | GET /Deliverytype | |
UrmarWebApi.PartnerApi | partnerGet | GET /Partner | Satıcılar |
UrmarWebApi.PartnerApi | partnerIdGet | GET /Partner/{id} | |
UrmarWebApi.PartnercatApi | partnercatGet | GET /Partnercat | |
UrmarWebApi.PaymenttypeApi | paymenttypeGet | GET /Paymenttype | |
UrmarWebApi.ProductApi | productGet | GET /Product | |
UrmarWebApi.ProductApi | productIdGet | GET /Product/{id} | |
UrmarWebApi.ServiceApi | serviceGet | GET /Service | |
UrmarWebApi.ServiceApi | serviceIdGet | GET /Service/{id} | |
UrmarWebApi.SubcategoryApi | subcategoryGet | GET /Subcategory | |
UrmarWebApi.WebApi | appWebBasketGet | GET /App/Web/Basket | Henüz onay verilmemiş aktif siparişi döndürür. Sipariş içerikleri ile birlikte |
UrmarWebApi.WebApi | appWebFlushBasketPost | POST /App/Web/FlushBasket | Henüz onay verilmemiş aktif siparişi temizler |
UrmarWebApi.WebApi | appWebFormContactPost | POST /App/Web/form/contact | AllowAnonymous |
UrmarWebApi.WebApi | appWebItemIdDelete | DELETE /App/Web/Item/{id} | Sepetten ürünü siler |
UrmarWebApi.WebApi | appWebItemPost | POST /App/Web/Item | Ürün ekleme, eğer sepet boşsa yeni order oluşturulur ve sadece o satıcıdan sipariş edilebilir |
UrmarWebApi.WebApi | appWebItemPut | PUT /App/Web/Item | Ürün adet sayısı günceller |
UrmarWebApi.WebApi | appWebOrdersGet | GET /App/Web/Orders | Parametrelere uygun aktif veya geçmiş siparişleri döndürür |
UrmarWebApi.WebApi | appWebPartnerFormGet | GET /App/Web/PartnerForm | |
UrmarWebApi.WebApi | appWebPartnerFormIdDelete | DELETE /App/Web/PartnerForm/{id} | |
UrmarWebApi.WebApi | appWebPartnerFormPost | POST /App/Web/PartnerForm | Partner başvuru formu AllowAnonymous |
UrmarWebApi.WebApi | appWebPrepareOrderPost | POST /App/Web/PrepareOrder | Sepetteği ürünleri toplar, fiyatı günceller |
UrmarWebApi.WebApi | appWebSendOrderPost | POST /App/Web/SendOrder | Eğer aktif bir sipariş varsa onaylar ve satıcıya iletilir. |
UrmarWebApi.WebApi | appWebServicesGet | GET /App/Web/Services | Sepette ekli olan satıcının hizmet sağladığı servisler |
UrmarWebApi.WebApi | appWebTakeOfferServicePost | POST /App/Web/TakeOfferService | Sepetteki ürünlere göre firmanın servis yapacağı bir sonraki tarifeyi döndürür |
UrmarWebApi.WebApi | appWebTakeServicePost | POST /App/Web/TakeService | Sepetteki ürünlere göre firmanın servis yapacağı en uygun tarifeyi döndürür |
UrmarWebApi.WebManagerApi | appWebManagerCategoryIdDelete | DELETE /App/WebManager/Category/{id} | Sadece manager |
UrmarWebApi.WebManagerApi | appWebManagerCategoryPost | POST /App/WebManager/Category | Sadece manager |
UrmarWebApi.WebManagerApi | appWebManagerCategoryPut | PUT /App/WebManager/Category | Sadece manager |
UrmarWebApi.WebManagerApi | appWebManagerFormContactGet | GET /App/WebManager/form/contact | Tüm iletişim formlarını döndürür |
UrmarWebApi.WebManagerApi | appWebManagerPartnerFormGet | GET /App/WebManager/PartnerForm | |
UrmarWebApi.WebManagerApi | appWebManagerPartnerFormIdDelete | DELETE /App/WebManager/PartnerForm/{id} | |
UrmarWebApi.WebManagerApi | appWebManagerPartnerIdDelete | DELETE /App/WebManager/Partner/{id} | Sadece manager |
UrmarWebApi.WebManagerApi | appWebManagerPartnerPost | POST /App/WebManager/Partner | Sadece manager |
UrmarWebApi.WebManagerApi | appWebManagerPartnerPut | PUT /App/WebManager/Partner | Sadece manager |
UrmarWebApi.WebManagerApi | appWebManagerSubCategoryIdDelete | DELETE /App/WebManager/SubCategory/{id} | Sadece manager |
UrmarWebApi.WebManagerApi | appWebManagerSubCategoryPost | POST /App/WebManager/SubCategory | Sadece manager |
UrmarWebApi.WebManagerApi | appWebManagerSubCategoryPut | PUT /App/WebManager/SubCategory | Sadece manager |
UrmarWebApi.WebManagerApi | appWebManagerUserIdDelete | DELETE /App/WebManager/User/{id} | |
UrmarWebApi.WebManagerApi | appWebManagerUserIdPut | PUT /App/WebManager/User/{id} | |
UrmarWebApi.WebPartnerApi | appWebPartnerBasketGet | GET /App/WebPartner/Basket | Henüz onay verilmemiş aktif siparişi döndürür. Sipariş içerikleri ile birlikte |
UrmarWebApi.WebPartnerApi | appWebPartnerGet | GET /App/WebPartner | Yetkin olduğu partner list |
UrmarWebApi.WebPartnerApi | appWebPartnerOrderCompletePost | POST /App/WebPartner/order/complete | Aktif siparişin tamamlanması veya reddi |
UrmarWebApi.WebPartnerApi | appWebPartnerOrderDecisionPut | PUT /App/WebPartner/order/decision | Bekleyen siparişlerin kabulu veya reddi |
UrmarWebApi.WebPartnerApi | appWebPartnerOrderIdGet | GET /App/WebPartner/Order/{id} | Sadece id olan siparişi döndürür. ilgili siparişin satıcı hesabı olması kontrol edilir |
UrmarWebApi.WebPartnerApi | appWebPartnerOrderStatusPut | PUT /App/WebPartner/order/status | Aktif sipariş üzerindeki duruım bilgisini günceller ve mesaj kullanıcıya gönderilir |
UrmarWebApi.WebPartnerApi | appWebPartnerOrdersGet | GET /App/WebPartner/Orders | Sadece son 5 siparişi döndürür. (Aktif olan sipariş dahil) Sipariş içerikleri ile birliklte |
UrmarWebApi.WebPartnerApi | appWebPartnerOrdersPendingGet | GET /App/WebPartner/Orders/Pending | Sipariş onayı bekleyen ve henüz sipariş verilmemiş siparişler. Sipariş içerikleri ile birliklte |
UrmarWebApi.WebPartnerApi | appWebPartnerProductIdDelete | DELETE /App/WebPartner/Product/{id} | Sadece partner |
UrmarWebApi.WebPartnerApi | appWebPartnerProductPost | POST /App/WebPartner/Product | Sadece partner |
UrmarWebApi.WebPartnerApi | appWebPartnerProductPut | PUT /App/WebPartner/Product | Sadece partner |
UrmarWebApi.WebPartnerApi | appWebPartnerServiceIdDelete | DELETE /App/WebPartner/Service/{id} | Sadece service |
UrmarWebApi.WebPartnerApi | appWebPartnerServicePost | POST /App/WebPartner/Service | Sadece service |
UrmarWebApi.WebPartnerApi | appWebPartnerServicePut | PUT /App/WebPartner/Service | Sadece service |
UrmarWebApi.WebPartnerApi | appWebPartnerUsersGet | GET /App/WebPartner/Users |
Documentation for Models
- UrmarWebApi.AuthLocationBody
- UrmarWebApi.AuthLoginBody
- UrmarWebApi.AuthRegisterBody
- UrmarWebApi.AuthRegisterConfirmBody
- UrmarWebApi.BotItemBody
- UrmarWebApi.BotItemBody1
- UrmarWebApi.BotLoginBody
- UrmarWebApi.BotPrepareOrderBody
- UrmarWebApi.BotReOrderBody
- UrmarWebApi.BotRegisterBody
- UrmarWebApi.BotRegisterConfirmBody
- UrmarWebApi.BotSendOrderBody
- UrmarWebApi.BotTakeServiceBody
- UrmarWebApi.BotUserLocationBody
- UrmarWebApi.BotUserLocationBody1
- UrmarWebApi.CategoryResponse
- UrmarWebApi.ContactForm
- UrmarWebApi.DeliverytypeResponse
- UrmarWebApi.JwtResponse
- UrmarWebApi.OrderCompleteBody
- UrmarWebApi.OrderDecisionBody
- UrmarWebApi.OrderResponse
- UrmarWebApi.OrderStatusBody
- UrmarWebApi.OrderitemResponse
- UrmarWebApi.Partner
- UrmarWebApi.PartnerResponse
- UrmarWebApi.PartnercatResponse
- UrmarWebApi.PaymenttypeResponse
- UrmarWebApi.ProblemDetails
- UrmarWebApi.ProductResponse
- UrmarWebApi.ServiceResponse
- UrmarWebApi.SubcategoryResponse
- UrmarWebApi.UserIdBody
- UrmarWebApi.UserResponse
- UrmarWebApi.UserlocationResponse
- UrmarWebApi.WebItemBody
- UrmarWebApi.WebItemBody1
- UrmarWebApi.WebManagerCategoryBody
- UrmarWebApi.WebManagerCategoryBody1
- UrmarWebApi.WebManagerPartnerBody
- UrmarWebApi.WebManagerPartnerBody1
- UrmarWebApi.WebManagerSubCategoryBody
- UrmarWebApi.WebManagerSubCategoryBody1
- UrmarWebApi.WebPartnerProductBody
- UrmarWebApi.WebPartnerProductBody1
- UrmarWebApi.WebPartnerServiceBody
- UrmarWebApi.WebPartnerServiceBody1
- UrmarWebApi.WebPrepareOrderBody
- UrmarWebApi.WebSendOrderBody
- UrmarWebApi.WebTakeOfferServiceBody
- UrmarWebApi.WebTakeServiceBody
Documentation for Authorization
Bearer
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header
2 years ago