Skip to content

Commit b0babd4

Browse files
committed
updated launch date filtering to rest standards
1 parent 24a43ea commit b0babd4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ GET https://api.spacexdata.com/launches/upcoming
5050
```
5151
Get past launches by year
5252
```http
53-
GET https://api.spacexdata.com/launches/year=2017
53+
GET https://api.spacexdata.com/launches?year=2017
5454
```
5555
Get past launches in a date range
5656
```http
57-
GET https://api.spacexdata.com/launches/from=2011-01-20/to=2017-05-25
57+
GET https://api.spacexdata.com/launches?from=2011-01-20&to=2017-05-25
5858
```
5959

6060
## Launch info by serial #'s

app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def hash_merge *hashes
215215
end
216216

217217
# Gets all launches in a date range
218-
get '/launches/from=:start/to=:final' do
218+
get '/launches/from=:start&to=:final' do
219219
content_type :json
220220
start = params['start']
221221
final = params['final']

0 commit comments

Comments
 (0)