Home Reference Source Repository
import {ServerConfig} from 'test-rest/src/models/ServerConfig.js'
public class | source

ServerConfig

Object representing the configuration of the test-rest server.

Constructor Summary

Public Constructor
public

constructor(identifierKey: string, routes: Array<EndpointConfig>)

Creates a new instance of ServerConfig

Member Summary

Public Members
public
public

Public Constructors

public constructor(identifierKey: string, routes: Array<EndpointConfig>) source

Creates a new instance of ServerConfig

Params:

NameTypeAttributeDescription
identifierKey string
  • optional
  • default: id

Property name used as the identifier for the resources.

routes Array<EndpointConfig>

Endpoint routes for the server.

Public Members

public identifierKey: string source

public routes: Array<EndpointConfig> source