When you're working on a frontend - backend project where the frontend application serves some resources brought in by the backend application, you definitely ran into the issue of frontend team not really being able to work until the backend endpoints are ready. 🤝
For this reason, the API First approach came about. 💯
It states that you should first define the contract between client and server before starting working on implementations.
This way, the two teams can work in parallel as long as they respect that contract.
The backend team knows how it should retrieve the data, and the frontend team knows what to expect as a response to requests. 🚀
Testing
🔵 Backend
In order to do integration testing on the backend side, you can write code that simulates your endpoints being called and/or ( I prefer and) you use Postman to send actual HTTP requests to your BE application.
🔵 Frontend
But can Postman help the FE team too?
The answer is yes!
Postman has the concept of Mock Servers.
First, you need to create some requests calling the BE application.
For each of them, you add some Examples where you specify a mock response for your endpoints.
Then, based on this collection of requests Postman can generate a Mock Server for you.