Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
AngularJS Web Application Development Blueprints

You're reading from   AngularJS Web Application Development Blueprints A practical guide to developing powerful web applications with AngularJS

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher Packt
ISBN-13 9781783285617
Length 300 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Vinci J Rufus Vinci J Rufus
Author Profile Icon Vinci J Rufus
Vinci J Rufus
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface 1. Introduction to AngularJS and the Single Page Application FREE CHAPTER 2. Setting Up Your Rig 3. Rapid Prototyping with AngularJS 4. Using REST Web Services in Your AngularJS App 5. Facebook Friends' Birthday Reminder App 6. Building an Expense Manager Mobile App 7. Building a CMS on the MEAN Stack 8. Scalable Architecture for Deployments on AWS 9. Building an E-Commerce Store A. AngularJS Resources 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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime