Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Introduction to GraphQL!
You have completed Introduction to GraphQL!
Preview
How does GraphQL differ from REST services? In this video, we will go over some simple example REST APIs, and what they would look like expressed with GraphQL.
New Terms:
- REST - A RESTful API is one that uses HTTP requests to GET, PUT, POST, and DELETE data. For example: http://api.example.com/movies/gone-with-the-wind
Further Reading:
GraphQL vs. REST by Sashko Stubailo
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
API development since as far back
as 2000 when Roy Fielding published
0:00
his paper that demonstrated a more
intuitive way of organizing APIs.
0:03
While REST has served the web
community well, in the past 15 years,
0:09
we've also learned some of
the challenges that come with it.
0:13
Let's take, for example, a simple
Hollywood API which exposes data about
0:16
various movies and
the studios involved in producing them.
0:21
Say we wanted to fetch some
information about a specific movie
0:26
from the Hollywood API using REST.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up