Hypermedia Api consumption


#1

HI!

I need to consume a Hypermedia Api ( more info: http://stateless.co/hal_specification.html ) with my ionic app, and I would like to choose the option that fits with the ionic/angular philosophy.

As the ng-resource falls short on this topic, there are some options out there that could do the thing:

Does someone have an experience working with hypermedia api’s inside an Ionic app? It would be nice if someone could post code samples about this topic.

Thanks a lot!


#2

No personal experience with HAL, but one would think that angular-hal would be the best bet (since it made to work with angular)

Plus they link to article about about hal and angular together
https://www.jiwhiz.com/#/blogs/535588f6352eb40d58180a58


#3

I wrote a blog post that may be can help all of you as a starting point to consuming Hypermedia Api’s in Restangular:
http://www.javifernandez.me/2014/12/21/consuming-hypermedia-apis-with-restangular/

The thing is:

  • Ng-Resource falls short
  • Angular Hal is interesting but is very immature
  • Restangular, in my opinion, is the way to go if you are thinking about PRODUCTION applications.

Hope it helps!