The above image explains the same point mentioned above. A front-end developer needs to develop the UI for which he must know the responses he will get. For the same he cannot wait until the APIs are up on server, so he uses the mock server in order to achieve the same and save time.
I guess now you must have known that mock server is a pretty important feature for a tester. It is very helpful in both development and test phases of a software. Continuing for the same we will now proceed to create our first mock server.