Paginazione basata su cursore
Intermedio Risposte API
Una risposta API che usa la paginazione basata su cursore con flag hasMore. Un esempio realistico per il tuo progetto o i tuoi test.
{
"data": [
{ "id": "msg_001", "text": "Hello" },
{ "id": "msg_002", "text": "World" },
{ "id": "msg_003", "text": "!" }
],
"cursor": {
"after": "msg_003",
"hasMore": true
}
} Apri nello strumento
Strumenti correlati
Altri esempi
- pagination
- cursor
- REST
- infinite-scroll