product_management_service v1.0.0
product_management_service
ProductManagementService - JavaScript client for product_management_service API for ProductManagementService This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.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_management_service --save
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/product_management_service then install it via:
npm install YOUR_USERNAME/product_management_service --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.
Getting Started
Please follow the installation instruction and execute the following JS code:
var ProductManagementService = require('product_management_service');
var api = new ProductManagementService.DefaultApi()
var item = new ProductManagementService.Item(); // {Item} Item to add
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully.');
}
};
api.createItem(item, callback);
Documentation for API Endpoints
All URIs are relative to http://localhost:8080
Class | Method | HTTP request | Description |
---|---|---|---|
ProductManagementService.DefaultApi | createItem | POST /item | |
ProductManagementService.DefaultApi | createItemType | POST /itemType | |
ProductManagementService.DefaultApi | createStorage | POST /storage | |
ProductManagementService.DefaultApi | createStore | POST /store | |
ProductManagementService.DefaultApi | deleteItem | DELETE /item/{id} | |
ProductManagementService.DefaultApi | deleteItemType | DELETE /itemType/{id} | |
ProductManagementService.DefaultApi | deleteStorage | DELETE /storage/{id} | |
ProductManagementService.DefaultApi | deleteStore | DELETE /store/{id} | |
ProductManagementService.DefaultApi | getItem | GET /item/{id} | |
ProductManagementService.DefaultApi | getItemType | GET /itemType/{id} | |
ProductManagementService.DefaultApi | getStorage | GET /storage/{id} | |
ProductManagementService.DefaultApi | getStore | GET /store/{id} | |
ProductManagementService.DefaultApi | listAllItemTypes | GET /itemType | |
ProductManagementService.DefaultApi | listAllItems | GET /item | |
ProductManagementService.DefaultApi | listAllStorages | GET /storage | |
ProductManagementService.DefaultApi | listAllStores | GET /store | |
ProductManagementService.DefaultApi | updateItem | PUT /item/{id} | |
ProductManagementService.DefaultApi | updateStorage | PUT /storage/{id} | |
ProductManagementService.DefaultApi | updateStore | PUT /store/{id} |
Documentation for Models
- ProductManagementService.Defect
- ProductManagementService.InlineResponse200
- ProductManagementService.InlineResponse2001
- ProductManagementService.InlineResponse2002
- ProductManagementService.InlineResponse2003
- ProductManagementService.Item
- ProductManagementService.ItemDefects
- ProductManagementService.ItemType
- ProductManagementService.Storage
- ProductManagementService.Store
- ProductManagementService.UpdatedItem
- ProductManagementService.UpdatedStorage
- ProductManagementService.UpdatedStore
Documentation for Authorization
All endpoints do not require authorization.
7 years ago