O'Reilly logo

Ionic : Hybrid Mobile App Development by Hoc Phan, Sani Yusuf, Rahat Khanna

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

$resource and REST API

REST is becoming the most popular choice of design pattern for the latest web services being developed. All new platforms, frameworks, and programming languages support REST standards out of the box. REST interfaces usually involve a collection of resources with identifiers, and supporting different actions using all HTTP verbs. For example, GET requests to a /users/ resource would fetch a list of users, and POST requests to /users/ can be used to create a new user. The identifier can be used in a GET request to the URL /users/john to fetch a specific user object with a unique identifier john.

$resource is an in-built factory that helps create a local resource object that integrates with the REST API implicitly. The resource ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required