@dadi/api
Advanced tools
Changelog
Provided by @eduardoboucas, many thanks for the hard work on this! Full documentation to be made available soon.
The default setting is now 'must authenticate'. This means if you have custom endpoints that are currently open and you want them to stay that way, add this block to the JS file:
module.exports.model = {
settings: {
authenticate: false
}
}
Previously created connections for every loaded collection, resulting in a new connection pool
for each collection. New behaviour is to create one connection per database - if you aren't
using enableCollectionDatabases
then this means you'll only be making one connection
to the database.
useVersionFilter
property (ed1c1d8)null
for host will allow connections on
any IPv6 address (if available), otherwise any IPv4 address. If port is 0
a random port will be assigned (3d5e0e0)Changelog
Fix #13: Removed auto-creation of API docs path (should only happen if api-doc module is installed)
Close #14: Load domain-specific configuration if matching file exists
Close #16: Check that generated auth token doesn't already exist, generate new one if it does
Close #18: Validate skip
& page
parameters before calling model.find()
Close #19: Database replicaSet
property should be a String, not a Boolean
Cache: add Redis caching ability and extend config to allow switching between filesystem and Redis caches
Cache: locate endpoint matching the request URL using path-to-regex so we can be certain of a match