The fullname of the Param.
An array
of other names that will reference this Param in:
// config/endpoints.cfg.js
module.exports = () => ({
__DEFAULTS: {
Params: {
MyParam: new GNParam({ Name: 'My Param', Aliases: ['YourParam'] })
}
},
User: {
Actions: {
Friend: new RouteDB({
Params: {
YourParam: true // Refers to __DEFAULTS.Params.MyParam
}
})
"/": new RouteDB({
Params: {
MyParam: true // Refers to __DEFAULTS.Params.MyParam
}
})
}
}
});
The default value for the Param. If this value is declare as function
that returns the actual value, this default
will be considered hidden
, and will not appear in the REST-API
Docs.
A callback that handles any post-processing needed before hydration.
A GNDescr object or {@link Params.Descr} config describing the Param.
Config properties for the GNParam object.