• 4 hours
  • Easy

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 3/30/22

Design REST APIs

Evaluated skills

  • Design REST APIs

Description

You’re a new contributor to the Star Wars API SWAPI that you came across in the part 2 quiz. Your goal: to integrate quotes from each film into the API. To do this, you’ll need to design new endpoints. These should return:

  • All quotes.
  • Quotes from different characters.
  • Quotes from different characters from different films.

We suggest you take a look at the API documentation before starting this quiz.

Ready? Then let’s go!

  • Question 1

    Start by defining your collection. What are you going to call it?

    • ApiQuotes

    • Quotes

    • ApiQuote

    • Quote

  • Question 2

    Now that you’ve named your collection, what will you call your resource?

    • ApiQuotes

    • Quotes

    • ApiQuote

    • Quote

  • Question 3

    The first endpoint you need to create should return a list of all quotes. Which URI will you use?

    • READ /quotes/:quoteId

    • GET /quotes

    • READ /quotes

    • GET /quotes/:quoteId

Ever considered an OpenClassrooms diploma?
  • Up to 100% of your training program funded
  • Flexible start date
  • Career-focused projects
  • Individual mentoring
Find the training program and funding option that suits you best