Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieving exactly 100 temporal instance of an entity returns 206 instead of 200 #179

Open
gregorylevilain opened this issue Jan 25, 2024 · 1 comment

Comments

@gregorylevilain
Copy link

Tested with Mintaka 0.5.40 and 0.6.0

1/ Post exactly 100 instances of a temporal entity.
2/ Using a temporal query to retrieve them.
Result : Http code 206. The body contains the 100 instances.

3/ Use the value provided in the content-range in order to get the next page of results.
Result: Http code 200. The body is an empty array.

Expected behaviour: the first query should have returned a 200 http code.

@wistefan
Copy link
Collaborator

wistefan commented Feb 9, 2024

Hi, how many instances of the entity did you receive in the 206 response? And was the entity present before you posted the 100 instances? Because the default limit is 100, if you have created the entity and then posted 100 instances, 101 exist and pagination will be applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants