Skip to content

aleksanderson/sdapi-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdapi-client

Client for Salesforce Commerce Cloud Debugger API which abstracts away a RESTful nature of the API and provides promised based way to interact with it

Configuration

dw.config.json

{
  "host": "addres.demandware.net",
  "user": "user",
  "password": "pass",
  "version": "version_1"
}

Examples

let config = require('../dw.config.json');

let dsDebugger = new DSDebugger(config);

dsDebugger.createSession()
  .then(() => dsDebugger.setBreakPoints([
    {
      line_number: 16,
      script_path: '/app_storefront_controllers/cartridge/controllers/Home.js'
    }
  ])
  .then(() => dsDebugger.getBreakPoints(1))
  .then(() => dsDebugger.removeSession());

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published