APIs Flashcards
1
Q
PUT
A
All fields in the resource you are updating should be added in the request body
2
Q
PATCH
A
Allow for partial updates to only specific fields without affecting the others
3
Q
What is Pagination
A
Dividing a large dataset into smaller manageable pages that are displayed to the user one at atime
- This significantly improves the user experience by preventing overwhelming amounts of data from loading on a single page.
- Useful when dealing with large datasets or APIs
- Faster load times
- Allows for scalability
4
Q
How pagination works
A
- page size: the number of items displayed per page
- page number: users select which page they want to view using a page number
- pagination controls: buttons or links are provided to navigate between pages like “Next” or “Previous”