File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ GET https://api.spacex.com/info
2828
2929Get vehicle information
3030``` http
31- GET https://api.spacex.com/falcon9
32- /falconheavy
33- /dragon
31+ GET https://api.spacex.com/vehicle/ falcon9
32+ /falconheavy
33+ /dragon
3434```
3535
3636Get launches by year
Original file line number Diff line number Diff line change 3737 JSON . pretty_generate ( $company_info)
3838end
3939
40- get '/vehicles /falcon9' do
40+ get '/vehicle /falcon9' do
4141 content_type :json
4242 JSON . pretty_generate ( $falcon9)
4343end
4444
45- get '/vehicles /falconheavy' do
45+ get '/vehicle /falconheavy' do
4646 content_type :json
4747 JSON . pretty_generate ( $falcon_heavy)
4848end
4949
50- get '/vehicles /dragon' do
50+ get '/vehicle /dragon' do
5151 content_type :json
5252 JSON . pretty_generate ( $dragon)
5353end
You can’t perform that action at this time.
0 commit comments