2.18.7 • Published 2 years ago

nr1_catalog_app v2.18.7

Weekly downloads
-
License
Copyright 2017 NC...
Repository
-
Last release
2 years ago

nr1_catalog_app

Nr1CatalogApp - JavaScript client for nr1_catalog_app 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: 2.18.4
  • Package version: 2.18.4
  • 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 nr1_catalog_app --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 nr1_catalog_app from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

You should now be able to require('nr1_catalog_app') 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/nr1_catalog_app then install it via:

    npm install YOUR_USERNAME/nr1_catalog_app --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 Nr1CatalogApp = require('nr1_catalog_app');

var api = new Nr1CatalogApp.CategoryNodesApi()

var nodeId = "nodeId_example"; // {String} A unique code which is used to identify a node in hierarchy.

var opts = { 
  'nepCorrelationId': "nepCorrelationId_example", // {String} A unique ID that can be used to correlate one or more related requests for debugging or tracing purposes
  'nepOrganization': "nepOrganization_example" // {String} The organization the request applies to
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.categoryNodesFindAncestors(nodeId, opts, callback);

Documentation for API Endpoints

All URIs are relative to http://api.ncr.com/catalog/v2

ClassMethodHTTP requestDescription
Nr1CatalogApp.CategoryNodesApicategoryNodesFindAncestorsGET /category-nodes/{nodeId}/ancestorsRetrieve ancestry information by the specified category node
Nr1CatalogApp.CategoryNodesApicategoryNodesFindByParentGET /category-nodesRetrieve active category node documents by the specified search criteria.
Nr1CatalogApp.CategoryNodesApicategoryNodesFindSuggestionsGET /category-nodes/suggestionsRetrieve Category suggestions by the specified search criteria.
Nr1CatalogApp.CategoryNodesApicategoryNodesGetGET /category-nodes/{nodeId}Retrieve a category node document by the resource identifier.
Nr1CatalogApp.CategoryNodesApicategoryNodesGetNodeSnapshotGET /category-nodes/{nodeId}/snapshotGet the snapshot for the specified parent node based on the provided client snapshot version.
Nr1CatalogApp.CategoryNodesApicategoryNodesGetSnapshotGET /category-nodes/snapshotGet the snapshot based on the provided client snapshot version.
Nr1CatalogApp.CategoryNodesApicategoryNodesSaveMultiplePUT /category-nodesCreates/Updates multiple category node documents.
Nr1CatalogApp.GroupsApigroupsFindByCriteriaGET /groupsRetrieve an active group document by the specified search criteria.
Nr1CatalogApp.GroupsApigroupsGetGET /groups/{groupCode}Retrieve a group document based on the provided resource identifier.
Nr1CatalogApp.GroupsApigroupsGetSnapshotGET /groups/snapshotGet the snapshot based on the provided client snapshot version.
Nr1CatalogApp.GroupsApigroupsSaveMultiplePUT /groupsCreates/updates multiple groups for catalog.
Nr1CatalogApp.ItemAttributesApiitemAttributesFindMultiplePOST /item-attributes/get-multipleRetrieves a collection of item-attribute documents matching the item-identifiers in the request
Nr1CatalogApp.ItemAttributesApiitemAttributesGetGET /item-attributes/{itemCode}Retrieve an item-attribute document by the item-attribute resource identifier.
Nr1CatalogApp.ItemAttributesApiitemAttributesGetItemAttributesDetailsGET /item-attributes/{itemCode}/detailsGet item-attributes details.
Nr1CatalogApp.ItemAttributesApiitemAttributesGetSnapshotGET /item-attributes/snapshotGet the snapshot based on the provided enterprise unit.
Nr1CatalogApp.ItemAttributesApiitemAttributesSavePUT /item-attributes/{itemCode}Creates/Updates an item-attribute document for a specific enterprise unit (site/store).
Nr1CatalogApp.ItemAttributesApiitemAttributesSaveMultiplePUT /item-attributesImports a mini-batch of enterprise unit specific item attributes.
Nr1CatalogApp.ItemCustomModifiersApiitemCustomModifiersFindMultiplePOST /item-custom-modifiers/get-multipleRetrieve a collection of matching custom item modifier documents
Nr1CatalogApp.ItemCustomModifiersApiitemCustomModifiersGetGET /item-custom-modifiers/{itemCode}/{linkGroupCode}/{linkedItemCode}Retrieve an item-custom-modifier document by the resource identifier
Nr1CatalogApp.ItemCustomModifiersApiitemCustomModifiersSaveMultiplePUT /item-custom-modifiersImports a mini-batch of item custom modifier documents.
Nr1CatalogApp.ItemDetailsApiitemDetailsFindByCriteriaGET /item-detailsFind item details for criteria
Nr1CatalogApp.ItemDetailsApiitemDetailsGetGET /item-details/{item-identifier}Retrieve aggregate information for single item specified item by the resource identifier.
Nr1CatalogApp.ItemDetailsApiitemDetailsGetLinkGroupsGET /item-details/{itemCode}/link-groupsGet the link groups of an item
Nr1CatalogApp.ItemDetailsApiitemDetailsSearchGET /item-details/searchSearch item details for criteria
Nr1CatalogApp.ItemGroupingsApiitemGroupingsGetGET /item-groupings/{itemCode}/{itemGroupingsType}Retrieves an item-groupings document by the resource identifier.
Nr1CatalogApp.ItemGroupingsApiitemGroupingsGetItemGroupingsTypeSnapshotGET /item-groupings/snapshot/{itemGroupingsType}Get the snapshot based on the provided client snapshot version and item-groupings type.
Nr1CatalogApp.ItemGroupingsApiitemGroupingsGetSnapshotGET /item-groupings/snapshotGet the snapshot based on the provided client snapshot version.
Nr1CatalogApp.ItemGroupingsApiitemGroupingsSaveMultiplePUT /item-groupingsCreates/updates multiple item-grouping documents.
Nr1CatalogApp.ItemPricesApiitemPricesFindMultiplePOST /item-prices/get-multipleRetrieves a collection of item-price documents matching the item-identifiers in the request
Nr1CatalogApp.ItemPricesApiitemPricesFindMultiplePricesPOST /item-prices/get-multiple-pricesRetrieve a collection of item-price documents grouped on item-codes
Nr1CatalogApp.ItemPricesApiitemPricesGetGET /item-prices/{itemCode}/{priceCode}Retrieve an item-price document by the item-price resource identifier.
Nr1CatalogApp.ItemPricesApiitemPricesGetPastAndPresentSnapshotGET /item-prices/snapshot/past-and-presentGet the snapshot of current and expired prices (up to 5 days in the past) based on the provided client snapshot version.
Nr1CatalogApp.ItemPricesApiitemPricesGetSnapshotGET /item-prices/snapshotGet the snapshot based on the provided client snapshot version.
Nr1CatalogApp.ItemPricesApiitemPricesSavePUT /item-prices/{itemCode}/{priceCode}Creates/Updates an item-price document with the provided item-price document input for a specific enterprise unit (site/store).
Nr1CatalogApp.ItemPricesApiitemPricesSaveMultiplePUT /item-pricesImports a mini-batch of item-price documents.
Nr1CatalogApp.ItemsApiitemsFindByCriteriaGET /itemsRetrieve item document/s by the specified search criteria.
Nr1CatalogApp.ItemsApiitemsFindMultiplePOST /items/get-multipleRetrieve items by the specified item codes or package identifiers.
Nr1CatalogApp.ItemsApiitemsFindSuggestionsGET /items/suggestionsRetrieve item suggestions by the specified search criteria.
Nr1CatalogApp.ItemsApiitemsGetGET /items/{itemCode}Retrieve an item document by the resource identifier.
Nr1CatalogApp.ItemsApiitemsGetSnapshotGET /items/snapshotGet the snapshot based on the provided client snapshot version.
Nr1CatalogApp.ItemsApiitemsSavePUT /items/{itemCode}Creates/Updates a catalog item document.
Nr1CatalogApp.ItemsApiitemsSaveMultiplePUT /itemsImports a mini-batch of catalog items.
Nr1CatalogApp.LinkGroupsApilinkGroupsFindByCriteriaGET /link-groupsRetrieve active link-group documents by the specified search criteria.
Nr1CatalogApp.LinkGroupsApilinkGroupsGetGET /link-groups/{linkGroupCode}Retrieves a link group document by the resource identifier.
Nr1CatalogApp.LinkGroupsApilinkGroupsGetSnapshotGET /link-groups/snapshotGet the snapshot based on the provided client snapshot version.
Nr1CatalogApp.LinkGroupsApilinkGroupsSavePUT /link-groups/{linkGroupCode}Creates/Updates a link-group document.
Nr1CatalogApp.LinkGroupsApilinkGroupsSaveMultiplePUT /link-groupsImports a mini-batch of link group documents.
Nr1CatalogApp.SubscriptionsApiaddSubscription1POST /subscriptions
Nr1CatalogApp.SubscriptionsApisubscriptionsDeleteSubscriptionDELETE /subscriptions/{name}
Nr1CatalogApp.SubscriptionsApisubscriptionsGetSubscriptionGET /subscriptions/{name}
Nr1CatalogApp.SubscriptionsApisubscriptionsSearchSubscriptionsGET /subscriptions

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

2.18.7

2 years ago

2.18.6

2 years ago

2.18.5

2 years ago

2.18.4

2 years ago