product_mangment_apis
v1.4.11
Published
Object
Readme
product_mangment_apis
ProductMangmentApis - JavaScript client for product_mangment_apis 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: v1
- Package version: v1
- 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 product_mangment_apis --savegit
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 --saveFor 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.jsThen 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 ProductMangmentApis = require('product_mangment_apis');
var defaultClient = ProductMangmentApis.ApiClient.instance;
// Configure API key authorization: X-API-Key
var X-API-Key = defaultClient.authentications['X-API-Key'];
X-API-Key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-API-Key.apiKeyPrefix['X-API-Key'] = "Token"
// Configure API key authorization: X-API-Secret
var X-API-Secret = defaultClient.authentications['X-API-Secret'];
X-API-Secret.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//X-API-Secret.apiKeyPrefix['X-API-Secret'] = "Token"
var api = new ProductMangmentApis.CategoriesApi()
var categoryId = "categoryId_example"; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getBy(categoryId, callback);Documentation for API Endpoints
All URIs are relative to http://35.197.20.122/funding
Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- ProductMangmentApis.CategoriesApi | getBy | GET /api/content/categories/{categoryId} | Gets category detail ProductMangmentApis.CategoriesApi | listAll | GET /api/content/categories | Lists all categories ProductMangmentApis.CategoriesApi | listAsTree | GET /api/content/categories/tree_view | List all categories as tree ProductMangmentApis.FaqsApi | getBySlug2 | GET /api/content/faq/{slug} | Get faq by slug ProductMangmentApis.FaqsApi | pageBy5 | GET /api/content/faq | ProductMangmentApis.OrdersApi | cancelOrder | DELETE /api/content/order/cancel/{id} | Cancel Order by id ProductMangmentApis.OrdersApi | checkout | POST /api/content/order/checkout | Checkout Order ProductMangmentApis.OrdersApi | confirmOrder | GET /api/content/order/confirm/{id} | Confirm Order by id ProductMangmentApis.OrdersApi | consumer | POST /api/content/order/consumer | Create Consumer if not exist ProductMangmentApis.OrdersApi | create | POST /api/content/order/create | Create Order ProductMangmentApis.OrdersApi | getOrder | GET /api/content/order/{id} | Get Order by id ProductMangmentApis.OrdersApi | pageBy4 | GET /api/content/order/listBy/{consumerIdentity} | ProductMangmentApis.OrdersApi | updateOrder | PUT /api/content/order/update/{id} | Update Order by id ProductMangmentApis.PagesApi | getBySlug1 | GET /api/content/pages/{slug} | Get page by slug ProductMangmentApis.PagesApi | pageBy3 | GET /api/content/pages | ProductMangmentApis.ProductsApi | getById | GET /api/content/products/{productId} | Gets a product ProductMangmentApis.ProductsApi | getBySlug | GET /api/content/products/slug | Gets a product ProductMangmentApis.ProductsApi | pageBy2 | GET /api/content/products/search | Lists products with optional filter criteria ProductMangmentApis.TagsApi | listProductsBy | GET /api/content/tags/{slug}/products | Lists products by tag slug ProductMangmentApis.TagsApi | listTags | GET /api/content/tags/list | Lists tags ProductMangmentApis.TagsApi | pageBy | GET /api/content/tags | ProductMangmentApis.TagsApi | pageBy1 | GET /api/content/tags/search | Lists products with optional filter criteria
Documentation for Models
- ProductMangmentApis.BaseMetaDTO
- ProductMangmentApis.BaseResponseCategoryDTO
- ProductMangmentApis.BaseResponseConsumerDTO
- ProductMangmentApis.BaseResponseListCategoryDTO
- ProductMangmentApis.BaseResponseListCategoryTreeVO
- ProductMangmentApis.BaseResponseListTagDTO
- ProductMangmentApis.BaseResponseObject
- ProductMangmentApis.BaseResponseOrderDTO
- ProductMangmentApis.BaseResponsePageContent
- ProductMangmentApis.BaseResponsePageOrderDTO
- ProductMangmentApis.BaseResponsePagePageContentDTO
- ProductMangmentApis.BaseResponsePageProductDetailVO
- ProductMangmentApis.BaseResponsePageQanDTO
- ProductMangmentApis.BaseResponsePageTagDTO
- ProductMangmentApis.BaseResponseProductDetailVO
- ProductMangmentApis.BaseResponseQan
- ProductMangmentApis.CategoryDTO
- ProductMangmentApis.CategoryQuery
- ProductMangmentApis.CategoryTreeVO
- ProductMangmentApis.ConsumerDTO
- ProductMangmentApis.ConsumerParam
- ProductMangmentApis.Distribution
- ProductMangmentApis.FilterQuery
- ProductMangmentApis.OrderDTO
- ProductMangmentApis.OrderItemDTO
- ProductMangmentApis.OrderItemParam
- ProductMangmentApis.OrderParam
- ProductMangmentApis.OrderQuery
- ProductMangmentApis.PageContent
- ProductMangmentApis.PageContentDTO
- ProductMangmentApis.PageOrderDTO
- ProductMangmentApis.PagePageContentDTO
- ProductMangmentApis.PageProductDetailVO
- ProductMangmentApis.PageQanDTO
- ProductMangmentApis.PageTagDTO
- ProductMangmentApis.Pageable
- ProductMangmentApis.PageableObject
- ProductMangmentApis.Product
- ProductMangmentApis.ProductAmtDtl
- ProductMangmentApis.ProductDetailVO
- ProductMangmentApis.Qan
- ProductMangmentApis.QanDTO
- ProductMangmentApis.Sort
- ProductMangmentApis.SortObject
- ProductMangmentApis.TagDTO
- ProductMangmentApis.TaxDTO
Documentation for Authorization
X-API-Key
- Type: API key
- API key parameter name: X-API-Key
- Location: HTTP header
X-API-Secret
- Type: API key
- API key parameter name: X-API-Secret
- Location: HTTP header
