Members
-
<static, readonly> TYPES
-
Properties
Name Type Description TYPES
Array.<string> Details
Methods
-
<static> statusCodeRoute( req, res, next )
-
Description
Hanlde Route Http Config yamlParameters
Name Type Description req
Express.Request Request res
Express.Response Response next
function Next route Details
-
<static> acceptedTypes( req ) → {Array.<string>}
-
Description
Determinates mock types to seek based on accept request headerParameters
Name Type Description req
Express.Request Request Returns
Details
-
<static> autoParse( content, fileExtension ) → {Object}
-
Description
Recognize content type and returns it parsedParameters
Name Type Description content
string Raw content to parse fileExtension
string fileExtension Returns
Details
-
<static> statusCodeRoute( req, res, next )
-
Description
Hanlde Route Http response raw body (json/xml etc) and request json-schema validationParameters
Name Type Description req
Express.Request Request res
Express.Response Response next
function Next route Details