1.0.6 • Published 2 years ago

urmar-api-client v1.0.6

Weekly downloads
-
License
Unlicense
Repository
-
Last release
2 years ago

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 /

ClassMethodHTTP requestDescription
UrmarWebApi.AuthApiauthLocationGetGET /Auth/Location
UrmarWebApi.AuthApiauthLocationIdDeleteDELETE /Auth/Location/{id}Kullanıcının tanımlı adreslerinden bir tanesini siler
UrmarWebApi.AuthApiauthLocationPostPOST /Auth/LocationKullanıcı adreslerine eklenir
UrmarWebApi.AuthApiauthLoginPostPOST /Auth/LoginEposta veya telefon numarası
UrmarWebApi.AuthApiauthRefreshLoginPostPOST /Auth/RefreshLoginErişim geçerliyken yeni token oluşturur
UrmarWebApi.AuthApiauthRegisterConfirmPostPOST /Auth/RegisterConfirm
UrmarWebApi.AuthApiauthRegisterPostPOST /Auth/Register
UrmarWebApi.AuthApiauthSecretRoleNamePostPOST /Auth/SecretRole/{name}Gizli roller için token alımı
UrmarWebApi.AuthApiauthSelfGetGET /Auth/Self
UrmarWebApi.BotApiappBotBasketGetGET /App/Bot/BasketHenüz onay verilmemiş aktif siparişi döndürür. Sipariş içerikleri ile birlikte
UrmarWebApi.BotApiappBotFlushBasketPostPOST /App/Bot/FlushBasketHenüz onay verilmemiş aktif siparişi temizler
UrmarWebApi.BotApiappBotItemDeleteDELETE /App/Bot/ItemSepetten ürünü siler
UrmarWebApi.BotApiappBotItemPostPOST /App/Bot/ItemÜrün ekleme, eğer sepet boşsa yeni order oluşturulur ve sadece o satıcıdan sipariş edilebilir
UrmarWebApi.BotApiappBotItemPutPUT /App/Bot/ItemÜrün adet sayısı günceller
UrmarWebApi.BotApiappBotLoginPostPOST /App/Bot/Login400 Hesap doğrulanmamış 404 Kullanıcı kayıtlı değil 200 dönerse giriş başarılı
UrmarWebApi.BotApiappBotOrdersGetGET /App/Bot/OrdersSon 5 siparişi döndürür. (Aktif olan sipariş dahil) Sipariş içerikleri ile birliklte
UrmarWebApi.BotApiappBotPrepareOrderPostPOST /App/Bot/PrepareOrderSepetteği ürünleri toplar, fiyatı günceller
UrmarWebApi.BotApiappBotReOrderPostPOST /App/Bot/ReOrderEski siparişi tekrar sepete ekler, Sepetin boş olmaması durumunda eskisi silinir
UrmarWebApi.BotApiappBotRegisterConfirmPostPOST /App/Bot/RegisterConfirm
UrmarWebApi.BotApiappBotRegisterPostPOST /App/Bot/RegisterKullanıcıya sms ile doğrulama kodu gönderilir
UrmarWebApi.BotApiappBotSendOrderPostPOST /App/Bot/SendOrderEğer aktif bir sipariş varsa onaylar ve satıcıya iletilir.
UrmarWebApi.BotApiappBotServicesGetGET /App/Bot/ServicesSepette ekli olan satıcının hizmet sağladığı servisler
UrmarWebApi.BotApiappBotTakeServicePostPOST /App/Bot/TakeServiceSepetteki ürünlere göre firmanın servis yapacağı en uygun tarifeyi döndürür
UrmarWebApi.BotApiappBotUserLocationDeleteDELETE /App/Bot/UserLocationKullanıcının tanımlı adresini siler
UrmarWebApi.BotApiappBotUserLocationGetGET /App/Bot/UserLocationKullanıcının tüm lokasyonlarını dündürür
UrmarWebApi.BotApiappBotUserLocationPostPOST /App/Bot/UserLocationKullanıcı adreslerine eklenir
UrmarWebApi.BotApiappBotUserLocationPutPUT /App/Bot/UserLocationKullanıcının ilgili lokasyonlanunu günceller
UrmarWebApi.CategoryApicategoryActiveGetGET /Category/active
UrmarWebApi.CategoryApicategoryGetGET /Category
UrmarWebApi.DeliverytypeApideliverytypeGetGET /Deliverytype
UrmarWebApi.PartnerApipartnerGetGET /PartnerSatıcılar
UrmarWebApi.PartnerApipartnerIdGetGET /Partner/{id}
UrmarWebApi.PartnercatApipartnercatGetGET /Partnercat
UrmarWebApi.PaymenttypeApipaymenttypeGetGET /Paymenttype
UrmarWebApi.ProductApiproductGetGET /Product
UrmarWebApi.ProductApiproductIdGetGET /Product/{id}
UrmarWebApi.ServiceApiserviceGetGET /Service
UrmarWebApi.ServiceApiserviceIdGetGET /Service/{id}
UrmarWebApi.SubcategoryApisubcategoryGetGET /Subcategory
UrmarWebApi.WebApiappWebBasketGetGET /App/Web/BasketHenüz onay verilmemiş aktif siparişi döndürür. Sipariş içerikleri ile birlikte
UrmarWebApi.WebApiappWebFlushBasketPostPOST /App/Web/FlushBasketHenüz onay verilmemiş aktif siparişi temizler
UrmarWebApi.WebApiappWebFormContactPostPOST /App/Web/form/contactAllowAnonymous
UrmarWebApi.WebApiappWebItemIdDeleteDELETE /App/Web/Item/{id}Sepetten ürünü siler
UrmarWebApi.WebApiappWebItemPostPOST /App/Web/ItemÜrün ekleme, eğer sepet boşsa yeni order oluşturulur ve sadece o satıcıdan sipariş edilebilir
UrmarWebApi.WebApiappWebItemPutPUT /App/Web/ItemÜrün adet sayısı günceller
UrmarWebApi.WebApiappWebOrdersGetGET /App/Web/OrdersParametrelere uygun aktif veya geçmiş siparişleri döndürür
UrmarWebApi.WebApiappWebPartnerFormGetGET /App/Web/PartnerForm
UrmarWebApi.WebApiappWebPartnerFormIdDeleteDELETE /App/Web/PartnerForm/{id}
UrmarWebApi.WebApiappWebPartnerFormPostPOST /App/Web/PartnerFormPartner başvuru formu AllowAnonymous
UrmarWebApi.WebApiappWebPrepareOrderPostPOST /App/Web/PrepareOrderSepetteği ürünleri toplar, fiyatı günceller
UrmarWebApi.WebApiappWebSendOrderPostPOST /App/Web/SendOrderEğer aktif bir sipariş varsa onaylar ve satıcıya iletilir.
UrmarWebApi.WebApiappWebServicesGetGET /App/Web/ServicesSepette ekli olan satıcının hizmet sağladığı servisler
UrmarWebApi.WebApiappWebTakeOfferServicePostPOST /App/Web/TakeOfferServiceSepetteki ürünlere göre firmanın servis yapacağı bir sonraki tarifeyi döndürür
UrmarWebApi.WebApiappWebTakeServicePostPOST /App/Web/TakeServiceSepetteki ürünlere göre firmanın servis yapacağı en uygun tarifeyi döndürür
UrmarWebApi.WebManagerApiappWebManagerCategoryIdDeleteDELETE /App/WebManager/Category/{id}Sadece manager
UrmarWebApi.WebManagerApiappWebManagerCategoryPostPOST /App/WebManager/CategorySadece manager
UrmarWebApi.WebManagerApiappWebManagerCategoryPutPUT /App/WebManager/CategorySadece manager
UrmarWebApi.WebManagerApiappWebManagerFormContactGetGET /App/WebManager/form/contactTüm iletişim formlarını döndürür
UrmarWebApi.WebManagerApiappWebManagerPartnerFormGetGET /App/WebManager/PartnerForm
UrmarWebApi.WebManagerApiappWebManagerPartnerFormIdDeleteDELETE /App/WebManager/PartnerForm/{id}
UrmarWebApi.WebManagerApiappWebManagerPartnerIdDeleteDELETE /App/WebManager/Partner/{id}Sadece manager
UrmarWebApi.WebManagerApiappWebManagerPartnerPostPOST /App/WebManager/PartnerSadece manager
UrmarWebApi.WebManagerApiappWebManagerPartnerPutPUT /App/WebManager/PartnerSadece manager
UrmarWebApi.WebManagerApiappWebManagerSubCategoryIdDeleteDELETE /App/WebManager/SubCategory/{id}Sadece manager
UrmarWebApi.WebManagerApiappWebManagerSubCategoryPostPOST /App/WebManager/SubCategorySadece manager
UrmarWebApi.WebManagerApiappWebManagerSubCategoryPutPUT /App/WebManager/SubCategorySadece manager
UrmarWebApi.WebManagerApiappWebManagerUserIdDeleteDELETE /App/WebManager/User/{id}
UrmarWebApi.WebManagerApiappWebManagerUserIdPutPUT /App/WebManager/User/{id}
UrmarWebApi.WebPartnerApiappWebPartnerBasketGetGET /App/WebPartner/BasketHenüz onay verilmemiş aktif siparişi döndürür. Sipariş içerikleri ile birlikte
UrmarWebApi.WebPartnerApiappWebPartnerGetGET /App/WebPartnerYetkin olduğu partner list
UrmarWebApi.WebPartnerApiappWebPartnerOrderCompletePostPOST /App/WebPartner/order/completeAktif siparişin tamamlanması veya reddi
UrmarWebApi.WebPartnerApiappWebPartnerOrderDecisionPutPUT /App/WebPartner/order/decisionBekleyen siparişlerin kabulu veya reddi
UrmarWebApi.WebPartnerApiappWebPartnerOrderIdGetGET /App/WebPartner/Order/{id}Sadece id olan siparişi döndürür. ilgili siparişin satıcı hesabı olması kontrol edilir
UrmarWebApi.WebPartnerApiappWebPartnerOrderStatusPutPUT /App/WebPartner/order/statusAktif sipariş üzerindeki duruım bilgisini günceller ve mesaj kullanıcıya gönderilir
UrmarWebApi.WebPartnerApiappWebPartnerOrdersGetGET /App/WebPartner/OrdersSadece son 5 siparişi döndürür. (Aktif olan sipariş dahil) Sipariş içerikleri ile birliklte
UrmarWebApi.WebPartnerApiappWebPartnerOrdersPendingGetGET /App/WebPartner/Orders/PendingSipariş onayı bekleyen ve henüz sipariş verilmemiş siparişler. Sipariş içerikleri ile birliklte
UrmarWebApi.WebPartnerApiappWebPartnerProductIdDeleteDELETE /App/WebPartner/Product/{id}Sadece partner
UrmarWebApi.WebPartnerApiappWebPartnerProductPostPOST /App/WebPartner/ProductSadece partner
UrmarWebApi.WebPartnerApiappWebPartnerProductPutPUT /App/WebPartner/ProductSadece partner
UrmarWebApi.WebPartnerApiappWebPartnerServiceIdDeleteDELETE /App/WebPartner/Service/{id}Sadece service
UrmarWebApi.WebPartnerApiappWebPartnerServicePostPOST /App/WebPartner/ServiceSadece service
UrmarWebApi.WebPartnerApiappWebPartnerServicePutPUT /App/WebPartner/ServiceSadece service
UrmarWebApi.WebPartnerApiappWebPartnerUsersGetGET /App/WebPartner/Users

Documentation for Models

Documentation for Authorization

Bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header