src/models/ServerConfig.js
/**
* Object representing the configuration of the test-rest server.
*/
export class ServerConfig {
/**
* Creates a new instance of ServerConfig
* @param {string} [identifierKey=id] Property name used as the identifier for the resources.
* @param {Array<EndpointConfig>} routes Endpoint routes for the server.
*/
constructor(routes, identifierKey = 'id') {
/** @type {string} */
this.identifierKey = identifierKey;
/** @type {Array<EndpointConfig>} */
this.routes = routes;
}
}
export default ServerConfig;