@dadi/api
Advanced tools
Changelog
@eduardoboucas
Usage:
Method: DELETE
URL: http://api.example.com/1.0/fictional-magazine-brand/articles
Body:
{
"query": {
"title": {"$in": ["foo", "bar", "baz]}
}
}
@eduardoboucas
The includeHistory
param now respects the fields
param, so that documents in history only contain the fields specified.
Added: a historyFilters
URL parameter, to be used in conjunction with includeHistory
, which adds the option to have a filter specific to the documents in history, with the same syntax as the existing filter
.
This makes it possible to retrieve only the revisions where name is Jim
:
http://api.example.com/1.0/fictional-magazine-brand/users/57866216acc4818e048efd36?includeHistory=true&historyFilters={"name":"Jim"}
Or get revisions between two dates:
http://api.example.com/1.0/fictional-magazine-brand/users/57866216acc4818e048efd36?includeHistory=true&historyFilters={"lastModifiedAt":{"$gte":1468424733361,"$lte":1468424737447}}
@dark12222000
Configuration variables likely to contain sensitive data can now be set from environment variables, rather than committing this data to config files.
Available variables: