I have large api that I want to wirte api tests for each endpoint. How should I handle testing endpoints that depend on id from other endpoints?
In our application we have to create client first then branch then products then order for that branch. so if I am testing
POST /clients
POST /branches
POST /products
POST /orders
should I write create client before every test for each endpoint?