How server side could be implemented to support client side development


#1

I am going to develop App in Ember. Before starting client side, i am in the situation to design and write REST API’s. Please share your thoughts and resources so that i could design good and neat API. Is there any architecture(say MVC) or frameworks (say Struts) to implement Rest API server ?


#2

I use www.laravel.com as a Backend.


#3

But its for PHP. I need for Java


#4

Yahoo uses Play Framework to build their prototype APIs. They eventually get rewritten for their specific infrastructure, but you might be able to go to production with it. I don’t do Java programming, so I don’t know.


#5

There’s a badass book I got on kindle right now: http://www.amazon.com/APIs-Strategy-Guide-Daniel-Jacobson/dp/1449308929, I’m really digging it so far.


#6

No matter what language you’re writing in, I’d suggest you follow ‘The Ember Way’ from the beginning. If you’re using Ember Data there are a lot of conventions (data formats, naming etc) that are easier to follow than try and work around. Have a read about the RestAdapter for sideloading data etc. Good luck.


#7

Really if you want to build something fast and robust see https://apigility.org because you can build you API very very fast, it comes with RESTful or RPC services; JSON (specifically, HAL); Problem Details for HTTP APIs; Versioning; Normalisation and Validation; Authentication (HTTP Basic/Digest, OAuth2); Documentation (HTML, Swagger) and also here is an example using emberjs http://lab.empirio.no/emberjs-say-hello-to-apigility.html