Re:Show HN: RESTful Doom – HTTP+JSON API inside Doom
by MuffinFlavored on Friday August 04, 2017 @12:10PM
(#14929737)
In a traditional REST API, where do non-RESTful things (like other API calls, or "business logic") tend to go?
Is there /db/restEndpoints and /rpc/nonRESTfulEndpoints?
Re:Show HN: RESTful Doom – HTTP+JSON API inside Doom
by Dashron on Friday August 04, 2017 @12:36PM
(#14929893)
Business logic should be hidden behind the API and the representation. Just like a website, actions are presented when the business logic allows it.
Other API calls depend on the purpose. If its part of the business logic, it's probably back end and hidden as described above.
If the other API call simply powers the UI, you might keep it in the client. One example is autocomple for facebook friends. The client can call facebook for a list, let the user select their friend, and then send that friends info to your API.
With that said, I'm not sure how either of those are "non-RESTful" so maybe I missed the point of the question?
Re:Show HN: RESTful Doom – HTTP+JSON API inside Doom
by MuffinFlavored on Friday August 04, 2017 @12:09PM
(#14929733)
Can you share some of the extensions?
It really bothers me that programmers call things REST, and when you look at it it isn't REST at all because they don't know the first thing about it.