• 4 heures
  • Facile

Ce cours est visible gratuitement en ligne.



J'ai tout compris !

Mis à jour le 30/03/2022

Design REST APIs

Compétences évaluées

  • Design REST APIs


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

Et si vous obteniez un diplôme OpenClassrooms ?
  • Formations jusqu’à 100 % financées
  • Date de début flexible
  • Projets professionnalisants
  • Mentorat individuel
Trouvez la formation et le financement faits pour vous