Difference between Webapi and SPA

Asked

Viewed 103 times

0

I know that SPA is nothing more than a WebApi specific, but the question is: How do I differentiate one from the other, ie what the purpose of each in the Development world. Why would I develop a SPA instead of a WebApi?

I think the question is not wide, because I want to know the difference between the two.

1 answer

2

It’s actually two very different scopes.

SPA, or single-page application, is a definition of user interface behavior where no content reloads occur, only partial exchanges - in a very similar way to an application desktop typical. Your domain is the front-end.

Webapi is a definition of functionalities implementation server-side. The vast majority of Webapi implementations are Restful, but this is not mandatory. His domain is the back-end.

The implementation of the two in parallel is possible - a SPA interface (for example in Angular) accessing resources made available via Webapi.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.