Skip to content

Commit 8000ffd

Browse files
committed
Merge pull request #987 from ronald/patch-2
fixed curl: no URL specified!
2 parents 954f4c6 + 7a5b221 commit 8000ffd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ version 'v1', using: :path
316316

317317
Using this versioning strategy, clients should pass the desired version in the URL.
318318

319-
curl -H http://localhost:9292/v1/statuses/public_timeline
319+
curl http://localhost:9292/v1/statuses/public_timeline
320320

321321
### Header
322322

@@ -384,15 +384,15 @@ version 'v1', using: :param
384384
Using this versioning strategy, clients should pass the desired version as a request parameter,
385385
either in the URL query string or in the request body.
386386

387-
curl -H http://localhost:9292/statuses/public_timeline?apiver=v1
387+
curl http://localhost:9292/statuses/public_timeline?apiver=v1
388388

389389
The default name for the query parameter is 'apiver' but can be specified using the `:parameter` option.
390390

391391
```ruby
392392
version 'v1', using: :param, parameter: "v"
393393
```
394394

395-
curl -H http://localhost:9292/statuses/public_timeline?v=v1
395+
curl http://localhost:9292/statuses/public_timeline?v=v1
396396

397397

398398
## Describing Methods

0 commit comments

Comments
 (0)