File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,12 +215,12 @@ Rails.application.routes.draw do
215
215
end
216
216
end
217
217
```
218
- which allows us to call the json data from ``` ruby localhost:3000/api/v1/movies```
218
+ which allows us to call the json data from ``` localhost:3000/api/v1/movies ```
219
219
220
220
221
221
6 . Let's seed our sqlite database with some classic movies so we can practice getting data with GET requests to the API.
222
222
223
- Copy and paste the following data to your ``` ruby config/seeds.rb``` file.
223
+ Copy and paste the following data to your ``` config/seeds.rb ``` file.
224
224
225
225
``` ruby
226
226
Movie .create(name: " The Nightmare Before Christmas" , rating: 5 )
@@ -240,7 +240,7 @@ Movie.create(name: "Bohemian Rhapsody", rating: 4)
240
240
Movie .create(name: " Ocean's 8" , rating: 5 )
241
241
```
242
242
243
- Seed the DB using ``` ruby rails db:seed && rails db:migrate ```
243
+ Seed the DB using ``` rails db:seed && rails db:migrate ```
244
244
245
245
7 . Test the API using a GET request.
246
246
You can’t perform that action at this time.
0 commit comments