off.the.walls wrote: » i've noticed a trend in recent years of moving away from building apps with a dedicated backend to building apps with an api at the backend and a front-end that simply accesses data through that api.
off.the.walls wrote: » What's everyones opinions on this are API's the way to go forward in the industry or is it simply a matter of coding preference.
Speedwell wrote: » APIs are going to be the new standard because they automate so much stuff that is time-wasting wheel-reinvention now.
Aswerty wrote: » Wait, wait, wait..Are we talking about APIs in general? Or are we talking about monolithic architectures vs service architectures? Or are we talking about monolithic architectures vs micro-service architectures? We already have two discussions on the go (1 and 3), and I'm not even sure if either of them are what the OP is asking after (which I think is 2).
Graham wrote: » I think the OP is referring to web apps, admittedly an assumption on my part but one that's based on OPs previous posts.
Aswerty wrote: » even if it's about web apps; there's a significant distinction between micro services and just decoupling the back-end and front end. The OP doesn't mention micro services but that's about the trendiest thing in this space at the moment.
off.the.walls wrote: » in terms of building a phone app, web app, tablet app all separately and having them make requests to the api
Labarbapostiza wrote: » ... And the "guru" we were dealing with didn't have a clue anyhow, and probably spent most of his day preparing TED style talks evangelising some new crude on crude as the salvation of the human race. ...
Aswerty wrote: » That's the impression I got but half the posts don't seem to be about that And even if it's about web apps; there's a significant distinction between micro services and just decoupling the back-end and front end. The OP doesn't mention micro services but that's about the trendiest thing in this space at the moment. Fat/Thin client architectures have been about since forever and they'd arguably fit the OPs question but I wouldn't exactly call them trendy.
mightyreds wrote: » Hi guys sorry to bring this back up again but I'm thinking of making an open source project that will consist of the API and allow anyone who wants to use it create their own front end. This is a first for me to try this, I'm trying to find out how I'd use the API would it be a series of Ajax calls from say as an example jquery for get and post. So for example on login post the data if susscessful redirect, if not display the error. Then on editing data would I send the get request and fill the form on load, then post the data on submitting. Or really any tips or input is appreciated
mightyreds wrote: » Sorry yeah I wasnt clear there I meant handle errors on the front-end as I'm gonna try build a front-end myself and use the API, but I was thinking of using HTML and jquery as that's what I know the best , just trying to get my head around how it'll work. I've made an API in a college project before but it only returned Json would it be wrong to do it this way?
deconduo wrote: » I'd recommend taking a look at http://swagger.io/ - quite a nice standard for REST APIs.