Book Image

AngularJS Web Application Development Blueprints

By : Vinci J Rufus
Book Image

AngularJS Web Application Development Blueprints

By: Vinci J Rufus

Overview of this book

If you are a web application developer interested in using AngularJS for a real-life project, then this book is for you. As a prerequisite, knowledge of JavaScript and HTML is expected, and a working knowledge of AngularJS is preferred.
Table of Contents (12 chapters)
11
Index

Understanding the response from a REST API


Before we get started with building our application, let's quickly see how a RESTful web service works.

For this exercise, we will use the web service from the following link:

developer.rottentomatoes.com

You will need to create an API key to be able to use these services. So, go ahead, sign up, and register for an API key.

Feel free to go through the documentation to understand the different web services they provide and different types of parameters you need to pass.

We'll use the Box Office API to get the list of the latest box office movies. The URL for the API is as follows:

http://api.rottentomatoes.com/api/public/v1.0/lists/movies/box_office.json

To this, we need to pass the following additional parameters:

  • apikey: The API key that you received when you signed up and registered an application

  • limit: The maximum number of results you want the web service to return

  • country: The country code for the country you'd like to see the results for

Note...