Introduction
Example data helps show what kind of information your API expects or returns. It makes your API easier to understand and test.
When you want to show sample input data for an API endpoint.
When you want to document the expected format of data in your API.
When you want to help frontend developers understand what data to send.
When you want to generate automatic API docs with clear examples.
When you want to test your API with realistic sample data.