Skip to content

v0.28: Document API changes #1700

@guimachiavelli

Description

@guimachiavelli

v0.28 introduces three main changes to /documents.

Resource pagination

As the name implies, getting a list of documents now returns paginated results using the new parameters limit and offset. Response bodies include a results array, together with limit, offset, and total fields.

Rename attributesToRetrieve to fields

The API endpoint for getting documents attributesToRetrieve is now called fields. This is to reduce confusion with the similarly named search parameter attributesToRetrieve.

displayedAttributes

There is no longer any relationship between displayedAttributes, the index setting, and the fields returned by the documents endpoint. Previously, attributesToRetrieve (now fields) would use the displayedAttributes list by default.

References

Specs:

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions