Hello Community,
maybe the question is completely stupid, but I just want to make sure I understood the offset correctly.
Suppose I have a TMF OpenAPI with a resource collection like this:
[
{
"id": 10
},
{
"id": 20
},
{
"id": 30
},
{
"id": 40
},
{
"id": 50
}
]
When an API consumer calls GET /api/entities?limit=2 in the first step. Then I would expect the following response:
[
{
"id": 10
},
{
"id": 20
}
]
What would the next call have to look like to receive the following ressources? GET /api/entities?limit=2&offset=2 or GET /api/entities?limit=2&offset=3
[
{
"id": 30
},
{
"id": 40
}
]
Would be great if someone can enlight me. I think table 2 on page 42 inside the API Guidelines caused my confusion.
Thanks and regards,
Jan
------------------------------
Jan Lemmermann
OSS Lead Architect
EWE TEL GmbH
------------------------------