DEV Community

Discussion on: REST API - Yet Another UI

Collapse
 
davidszabo97 profile image
Dávid Szabó

"If you are using a REST API as just another UI, that seems like an unnecessary abstraction."
It's not really an unnecessary abstraction. How would you expose your service to the public? If you think it's an unnecessary abstraction, then anything that exposes your service to the public is unnecessary. It might be a SOAP, XML-RPC or whatever you prefer. But it's just one way to expose your service.

I am not a strict REST API follower, your examples make sense.

Collapse
 
kspeakman profile image
Kasey Speakman

Ah gotcha. It wasn't clear to me that it would be a public API. Yes, public API needs to be a separate thing from the internal API. The concerns are different. I suppose you could look at it as a user interface, but your users are other developers. :)

Thread Thread
 
davidszabo97 profile image
Dávid Szabó

Exactly! :D