Home Reference Source Repository
import RestExposer from 'schema-mapper-store/lib/expose/rest.js'
public class | source

RestExposer

A server that exposes the store as a REST API

Constructor Summary

Public Constructor
public

constructor(config: Object, storeProxy: StoreProxy)

Create a new RestExposer instance

Member Summary

Public Members
public

server: *

public

Method Summary

Public Methods
public

Setup routes for the REST API

Public Constructors

public constructor(config: Object, storeProxy: StoreProxy) source

Create a new RestExposer instance

Params:

NameTypeAttributeDescription
config Object

Configuration

storeProxy StoreProxy

Proxy to communicate with the store

Public Members

public server: * source

public storeProxy: * source

Public Methods

public setupRoutes() source

Setup routes for the REST API