Version 1.5.0
Batch updates
Send a query and an update in the body of a PUT
request to update all documents matching the query.
PUT /1.0/library/notices HTTP/1.1
Host: api.example.com
content-type: application/json
Authorization: Bearer 171c8c12-6e9b-47a8-be29-0524070b0c65
{
query: { "_id": { "$in": [1234,5678,9012,3456] } },
update: { "status": "published" }
}
Parse JS comments in endpoint files
This feature enables documentation written into endpoint JS files to be displayed in autogenerated API documentation available when using package @dadi/apidoc
Collection schema validation properties
validationRule
and limit
properties have been deprecated. See the new validation formats in the API documentation:
validationRule
replacement: https://github.com/dadi/api/blob/docs/docs/validation.md#regular-expression-validationlimit
replacement: https://github.com/dadi/api/blob/docs/docs/validation.md#length-validation
Fixes
Fix #58: fallback to the directory cache if Redis client is unable to connect
Fix #54: don't convert nested query fields if they are querying a field of type Object
Fix #51: allow mixed fields to contain objects, don't validate nested properties
against the collection schema
Refactor #56: replace /api/status
endpoint with version from @dadi/status repo