At my new job I am working on a basic existing CRUD web application in MVC + with an Angular front-end.
The MVC API has a Swagger spec and it's used to generate an API client with auto rest. That API client is consumed by the front-end.
Now I understand the technical implementation but I am scratching my on why this is done? What is the advantage of an API client instead of just calling the API directly? This just seems like baseless redirection to me.
Can anyone explain what are the basic design decision on why API client should be used?