eyond_core_api
v1.0.1
Published
API Client
Downloads
2
Readme
eyond_core_api
EyondCoreApi - JavaScript client for eyond_core_api Eyond Core API is an extensive ASP.NET Core Web API for managing operations between Eyond ERP frontend, Eyond Core Database and thrid party connectors (Shopify, Avocadostore, sevDesk). This SDK is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: v1
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit https://eyond.eu/#contact
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 eyond_core_api --save
Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
Finally, switch to the directory you want to use your eyond_core_api from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
You should now be able to require('eyond_core_api')
in javascript files from the directory you ran the last
command above from.
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/eyond_core_api then install it via:
npm install YOUR_USERNAME/eyond_core_api --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, that's to say your javascript file where you actually
use this library):
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 EyondCoreApi = require('eyond_core_api');
var defaultClient = EyondCoreApi.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 EyondCoreApi.ClientsApi()
var clientId = 789; // {Number}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.deleteClient(clientId, callback);
Documentation for API Endpoints
All URIs are relative to https://eyondcoreapi.azurewebsites.net
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- EyondCoreApi.ClientsApi | deleteClient | DELETE /api/Clients/delete/{clientId} | EyondCoreApi.ClientsApi | getClient | GET /api/Clients/{clientId} | EyondCoreApi.ClientsApi | getClients | GET /api/Clients/all | EyondCoreApi.ClientsApi | login | POST /api/Clients/login | EyondCoreApi.ClientsApi | postClient | POST /api/Clients/add | EyondCoreApi.OrderFulfillmentLineItemsApi | deleteOrderFulfillment | DELETE /api/OrderFulfillmentLineItems/delete/client/{clientId}/order/{orderId}/fulfillment/{fulId}/item/{itemId} | EyondCoreApi.OrderFulfillmentLineItemsApi | getOrderFulfillmentItem | GET /api/OrderFulfillmentLineItems/client/{clientId}/order/{orderId}/fulfillment/{fulId}/item/{itemId} | EyondCoreApi.OrderFulfillmentLineItemsApi | getOrderFulfillmentItems | GET /api/OrderFulfillmentLineItems/{clientId} | EyondCoreApi.OrderFulfillmentLineItemsApi | getOrderFulfillmentItems_0 | GET /api/OrderFulfillmentLineItems/client/{clientId}/order/{orderId} | EyondCoreApi.OrderFulfillmentLineItemsApi | getOrderFulfillmentItems_1 | GET /api/OrderFulfillmentLineItems/client/{clientId}/order/{orderId}/fulfillment/{fulId} | EyondCoreApi.OrderFulfillmentLineItemsApi | postOrderFulfillment | POST /api/OrderFulfillmentLineItems/add | EyondCoreApi.OrderFulfillmentLineItemsApi | putOrderFulfillment | PUT /api/OrderFulfillmentLineItems/modify/client/{clientId}/order/{orderId}/fulfillment/{fulId}/item/{itemId} | EyondCoreApi.OrderFulfillmentsApi | deleteOrderFulfillment | DELETE /api/OrderFulfillments/delete/client/{clientId}/order/{orderId}/fulfillment/{fulId} | EyondCoreApi.OrderFulfillmentsApi | getOrderFulfillment | GET /api/OrderFulfillments/client/{clientId}/order/{orderId}/fulfillment/{fulId} | EyondCoreApi.OrderFulfillmentsApi | getOrderFulfillments | GET /api/OrderFulfillments/{clientId} | EyondCoreApi.OrderFulfillmentsApi | getOrderFulfillments_0 | GET /api/OrderFulfillments/client/{clientId}/order/{orderId} | EyondCoreApi.OrderFulfillmentsApi | postOrderFulfillment | POST /api/OrderFulfillments/add | EyondCoreApi.OrderFulfillmentsApi | putOrderFulfillment | PUT /api/OrderFulfillments/modify/client/{clientId}/order/{orderId}/fulfillment/{fulId} | EyondCoreApi.OrdersApi | getOrder | GET /api/Orders/client/{clientId}/order/{ordrId} | EyondCoreApi.OrdersApi | getOrders | GET /api/Orders/{clientId} | EyondCoreApi.ProductVariantsApi | deleteProductVariant | DELETE /api/ProductVariants/delete/client/{clientId}/product/{prodId}/variant/{varId} | EyondCoreApi.ProductVariantsApi | getProductVariant | GET /api/ProductVariants/client/{clientId}/product/{prodId}/variant/{varId} | EyondCoreApi.ProductVariantsApi | getProductVariants | GET /api/ProductVariants/{clientId} | EyondCoreApi.ProductVariantsApi | getProductVariants_0 | GET /api/ProductVariants/client/{clientId}/product/{prodId} | EyondCoreApi.ProductVariantsApi | postProductVariant | POST /api/ProductVariants/add | EyondCoreApi.ProductVariantsApi | putProductVariant | PUT /api/ProductVariants/modify/client/{clientId}/product/{prodId}/variant/{varId} | EyondCoreApi.ProductsApi | deleteProduct | DELETE /api/Products/delete/client/{clientId}/prod/{prodId} | EyondCoreApi.ProductsApi | getProduct | GET /api/Products/client/{clientId}/prod/{prodId} | EyondCoreApi.ProductsApi | getProducts | GET /api/Products/{clientId} | EyondCoreApi.ProductsApi | postProduct | POST /api/Products/add | EyondCoreApi.ProductsApi | putProduct | PUT /api/Products/modify/client/{clientId}/prod/{prodId} | EyondCoreApi.PurchaseOrderLineItemsApi | deletePurchaseOrderLineItem | DELETE /api/PurchaseOrderLineItems/delete/client/{clientId}/order/{orderId}/lineItem/{itemId} | EyondCoreApi.PurchaseOrderLineItemsApi | getFPurchaseOrderLineItem | GET /api/PurchaseOrderLineItems/client/{clientId}/order/{orderId}/lineItem/{itemId} | EyondCoreApi.PurchaseOrderLineItemsApi | getPurchaseOrderLineItem | GET /api/PurchaseOrderLineItems/{clientId} | EyondCoreApi.PurchaseOrderLineItemsApi | getPurchaseOrderLineItem_0 | GET /api/PurchaseOrderLineItems/client/{clientId}/order/{orderId} | EyondCoreApi.PurchaseOrderLineItemsApi | postPurchaseOrderLineItem | POST /api/PurchaseOrderLineItems/add | EyondCoreApi.PurchaseOrderLineItemsApi | putFPurchaseOrderLineItem | PUT /api/PurchaseOrderLineItems/modify/client/{clientId}/order/{orderId}/lineItem/{itemId} | EyondCoreApi.PurchaseOrdersApi | deletePurchaseOrder | DELETE /api/PurchaseOrders/delete/client/{clientId}/purchaseOrder/{orderId} | EyondCoreApi.PurchaseOrdersApi | getPurchaseOrder | GET /api/PurchaseOrders/{clientId} | EyondCoreApi.PurchaseOrdersApi | getPurchaseOrder_0 | GET /api/PurchaseOrders/client/{clientId}/purchaseOrder/{orderId} | EyondCoreApi.PurchaseOrdersApi | posFPurchaseOrder | POST /api/PurchaseOrders/add | EyondCoreApi.PurchaseOrdersApi | putPurchaseOrder | PUT /api/PurchaseOrders/modify/client/{clientId}/purchaseOrder/{orderId} | EyondCoreApi.StocksApi | deleteStock | DELETE /api/Stocks/delete/client/{clientId}/warehouse/{warhId}/productVariant/{prodVarId} | EyondCoreApi.StocksApi | getStock | GET /api/Stocks/{clientId} | EyondCoreApi.StocksApi | getStock_0 | GET /api/Stocks/client/{clientId}/warehouse/{warhId} | EyondCoreApi.StocksApi | getStock_1 | GET /api/Stocks/client/{id}/warehouse/{warhId}/productVariant/{prodVarId} | EyondCoreApi.StocksApi | postStock | POST /api/Stocks/add | EyondCoreApi.StocksApi | putStock | PUT /api/Stocks/modify/client/{clientId}/warehouse/{warhId}/productVariant/{prodVarId} | EyondCoreApi.StocksApi | shift | PUT /api/Stocks/shift/client/{clientId}/sourceWarehouse/{sourceWarhId}/destWarehouse/{destWarhId}/quantity/{quantity} | EyondCoreApi.WarehousesApi | deleteWarehouse | DELETE /api/Warehouses/delete/client/{clientId}/warehouse/{warhId} | EyondCoreApi.WarehousesApi | getWarehouse | GET /api/Warehouses/{clientId} | EyondCoreApi.WarehousesApi | getWarehouse_0 | GET /api/Warehouses/client/{clientId}/warehouse/{warhId} | EyondCoreApi.WarehousesApi | postWarehouse | POST /api/Warehouses/add | EyondCoreApi.WarehousesApi | putWarehouse | PUT /api/Warehouses/modify/client/{clientId}/warehouse/{warhId} |
Documentation for Models
- EyondCoreApi.EyondClient
- EyondCoreApi.OrderFulfillment
- EyondCoreApi.OrderFulfillmentLine
- EyondCoreApi.Product
- EyondCoreApi.ProductVariant
- EyondCoreApi.PurchaseOrder
- EyondCoreApi.PurchaseOrderLineItem
- EyondCoreApi.Stock
- EyondCoreApi.Warehouse
Documentation for Authorization
Bearer
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header