@@ -74,58 +74,55 @@ Your movie data model could look like:
74
74
75
75
#### Example API Endpoints
76
76
77
- - ** GetMovies** could look like this:
78
- ` yourapi.com/getmovies `
79
-
80
- ```json
81
- [
82
- {
83
- "title": "Inception",
84
- "releaseYear": "2010",
85
- "genre": "Science Fiction, Action",
86
- "coverUrl": "https://example.com/inception.jpg"
87
- },
88
- {
89
- "title": "The Shawshank Redemption",
90
- "releaseYear": "1994",
91
- "genre": "Drama, Crime",
92
- "coverUrl": "https://example.com/shawshank-redemption.jpg"
93
- },
94
- {
95
- "title": "The Dark Knight",
96
- "releaseYear": "2008",
97
- "genre": "Action, Crime, Drama",
98
- "coverUrl": "https://example.com/dark-knight.jpg"
99
- }
100
- ]
101
- ```
102
-
103
- - ** GetMoviesByYear** could look like:
104
- ` yourapi.com/getmoviesbyyear/2010 `
105
-
106
- ```json
107
- [
108
- {
109
- "title": "Inception",
110
- "releaseYear": "2010",
111
- "genre": "Science Fiction, Action",
112
- "coverUrl": "https://example.com/inception.jpg"
113
- }
114
- ]
115
- ```
116
-
117
- - ** GetMovieSummary** could look like:
118
- ` yourapi.com/getmoviesummary/inception `
119
-
120
- ```json
77
+ - ** GetMovies** ` yourapi.com/getmovies `
78
+
79
+ ``` json
80
+ [
81
+ {
82
+ "title" : " Inception" ,
83
+ "releaseYear" : " 2010" ,
84
+ "genre" : " Science Fiction, Action" ,
85
+ "coverUrl" : " https://example.com/inception.jpg"
86
+ },
121
87
{
122
- "title": "Inception",
123
- "releaseYear": "2010",
124
- "genre": "Science Fiction, Action",
125
- "coverUrl": "https://example.com/inception.jpg",
126
- "generatedSummary": "A mind-bending sci-fi thriller about dream theft and manipulation."
88
+ "title" : " The Shawshank Redemption" ,
89
+ "releaseYear" : " 1994" ,
90
+ "genre" : " Drama, Crime" ,
91
+ "coverUrl" : " https://example.com/shawshank-redemption.jpg"
92
+ },
93
+ {
94
+ "title" : " The Dark Knight" ,
95
+ "releaseYear" : " 2008" ,
96
+ "genre" : " Action, Crime, Drama" ,
97
+ "coverUrl" : " https://example.com/dark-knight.jpg"
127
98
}
128
- ```
99
+ ]
100
+ ```
101
+
102
+ - ** GetMoviesByYear** ` yourapi.com/getmoviesbyyear/2010 `
103
+
104
+ ``` json
105
+ [
106
+ {
107
+ "title" : " Inception" ,
108
+ "releaseYear" : " 2010" ,
109
+ "genre" : " Science Fiction, Action" ,
110
+ "coverUrl" : " https://example.com/inception.jpg"
111
+ }
112
+ ]
113
+ ```
114
+
115
+ - ** GetMovieSummary** ` yourapi.com/getmoviesummary/inception `
116
+
117
+ ``` json
118
+ {
119
+ "title" : " Inception" ,
120
+ "releaseYear" : " 2010" ,
121
+ "genre" : " Science Fiction, Action" ,
122
+ "coverUrl" : " https://example.com/inception.jpg" ,
123
+ "generatedSummary" : " A mind-bending sci-fi thriller about dream theft and manipulation."
124
+ }
125
+ ```
129
126
130
127
## Things you should be familiar with at the end of this phase
131
128
0 commit comments