REST API stands for REpresentational State Transfer which is an application programming interface that…