how to test an app using this framework with postman
- User
how to test an app using this framework with postman
Assistant
Based on the repository content, I can help explain how to test an application using Laravel Rest API with [Redacted Person]. Looking at the test files and README, here's how you can structure your Postman requests:
- Basic Search Request:
codePOST /api/your-resource/search Content-Type: application/json Accept: application/json { "search": { "filters": [], "sorts": [], "includes": [], "page": 1, "limit": 10 } }- Common Operations You Can Test:
a) Filtering:
json{ "search": { "filters": [ {"field": "name", "value": "test"}, {"field": "id", "operator": ">", "value": 1}, {"field": "status", "operator": "in", "value": ["active", "pending"]} ] } }b) Sorting:
json{ "search": { "sorts": [ {"field": "id", "direction": "desc"}, {"field": "created_at", "direction": "asc"} ] } }c) Including Relations:
json{ "search": { "includes": [ { "relation": "user", "filters": [ {"field": "id", "value": 1} ] } ] } }d) Pagination:
json{ "search": { "page": 2, "limit": 10 } }- Mutate Operations:
For creating/updating records:
code
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.