DPDK Architecture  ->  Bootstrap (v3.0.5)

Mocking API
< v2.3.0

Simple mocking api middleware for Express

Features

  • The mocking api exists of a simple JSON file that is exposed as an API. The files can be found here: app/mocking
  • The mocking api will automatically map to GraphQL
  • Includes the default function with configuration from the application config

Bootstrap

Config

No config implemented

Implementation

const mockingApi = require('./middleware/mockingApi');

this.server.use(mockingApi({
  data: require(`${this.dirname}/mocking`)
}));

Usage

Config

{
  "mockingApi": {
    "enabled": true,
    "onlyMapFirstLevel": true
  }
}

Links

No links available

Last modifiedFriday, April 30, 2021, 12:00:21 PM UTC
Last authorColin van Eenige
Commit ID4c7a701