From 3b346d734ad8e749d22178516189a2701a6acf96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwyneth=20Pe=C3=B1a-Siguenza?= Date: Wed, 12 Jun 2024 17:54:03 +0000 Subject: [PATCH] updates to formatting --- docs/phase2/README.md | 97 +++++++++++++++++++++---------------------- 1 file changed, 47 insertions(+), 50 deletions(-) diff --git a/docs/phase2/README.md b/docs/phase2/README.md index e2f09f3..38ad9ab 100644 --- a/docs/phase2/README.md +++ b/docs/phase2/README.md @@ -74,58 +74,55 @@ Your movie data model could look like: #### Example API Endpoints -- **GetMovies** could look like this: -`yourapi.com/getmovies` - - ```json - [ - { - "title": "Inception", - "releaseYear": "2010", - "genre": "Science Fiction, Action", - "coverUrl": "https://example.com/inception.jpg" - }, - { - "title": "The Shawshank Redemption", - "releaseYear": "1994", - "genre": "Drama, Crime", - "coverUrl": "https://example.com/shawshank-redemption.jpg" - }, - { - "title": "The Dark Knight", - "releaseYear": "2008", - "genre": "Action, Crime, Drama", - "coverUrl": "https://example.com/dark-knight.jpg" - } - ] - ``` - -- **GetMoviesByYear** could look like: -`yourapi.com/getmoviesbyyear/2010` - - ```json - [ - { - "title": "Inception", - "releaseYear": "2010", - "genre": "Science Fiction, Action", - "coverUrl": "https://example.com/inception.jpg" - } - ] - ``` - -- **GetMovieSummary** could look like: -`yourapi.com/getmoviesummary/inception` - - ```json +- **GetMovies** `yourapi.com/getmovies` + +```json +[ + { + "title": "Inception", + "releaseYear": "2010", + "genre": "Science Fiction, Action", + "coverUrl": "https://example.com/inception.jpg" + }, { - "title": "Inception", - "releaseYear": "2010", - "genre": "Science Fiction, Action", - "coverUrl": "https://example.com/inception.jpg", - "generatedSummary": "A mind-bending sci-fi thriller about dream theft and manipulation." + "title": "The Shawshank Redemption", + "releaseYear": "1994", + "genre": "Drama, Crime", + "coverUrl": "https://example.com/shawshank-redemption.jpg" + }, + { + "title": "The Dark Knight", + "releaseYear": "2008", + "genre": "Action, Crime, Drama", + "coverUrl": "https://example.com/dark-knight.jpg" } - ``` +] +``` + +- **GetMoviesByYear** `yourapi.com/getmoviesbyyear/2010` + +```json +[ + { + "title": "Inception", + "releaseYear": "2010", + "genre": "Science Fiction, Action", + "coverUrl": "https://example.com/inception.jpg" + } +] +``` + +- **GetMovieSummary** `yourapi.com/getmoviesummary/inception` + +```json +{ + "title": "Inception", + "releaseYear": "2010", + "genre": "Science Fiction, Action", + "coverUrl": "https://example.com/inception.jpg", + "generatedSummary": "A mind-bending sci-fi thriller about dream theft and manipulation." +} +``` ## Things you should be familiar with at the end of this phase