Skip to content

project-ncl/pnc-api-mocks

Repository files navigation

PNC API mocks

Prerequisites

See "engines" in package.json for minimum version requirements (for example node and npm).

Workflows

Contribute using GitHub flow, once new Pull request is created, GitHub Workflows are started and jobs consisting of building and testing are executed.

First prepare project locally:

git clone <yourGitForkUrl> pnc-api-mocks
cd ./pnc-api-mocks/
npm install

To start the mock backend:

npm start   # runs the server on http://localhost:8020

Mocking data

In order to create an endpoint for some data, follow these steps.

Create JavaScript file in the mocks directory representing one endpoint. The file needs to export array of entities (using module.exports). See, for example, product-milestone-statistics.js

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •