1
0
Fork 0

Use curl examples

This commit is contained in:
Gregory Eremin 2014-07-13 17:26:05 +07:00
parent 038f0d83d4
commit fbfd5e4727
1 changed files with 8 additions and 8 deletions

View File

@ -192,8 +192,8 @@ Publication can be done via both `GET` and `POST` methods. To publish a message
Server will respond with `OK` message. Server will respond with `OK` message.
#### Example #### Example
``` ```bash
/publish?queue=urgent&msg=Process+this+message+as+soon+as+possible! curl '127.0.0.1:4401/publish?queue=urgent' -d 'Process this message as soon as possible!'
``` ```
Response Response
``` ```
@ -207,8 +207,8 @@ Tries to fetch a message from one of the queues given. If there is a message at
Subscription is always done via `GET` method. To fetch a message from a queue use the name of the queue as the `queues` argument value. Multiple queue names could be passed separated with the `,` (quote) character. Subscription is always done via `GET` method. To fetch a message from a queue use the name of the queue as the `queues` argument value. Multiple queue names could be passed separated with the `,` (quote) character.
#### Example #### Example
``` ```bash
/subscribe?queues=urgent,someday curl '127.0.0.1:4401/subscribe?queues=urgent,someday'
``` ```
Response Response
``` ```
@ -220,8 +220,8 @@ Process this message as soon as possible!
Displays information about the queues, their messages and current subscriptions encoded in JSON format. Displays information about the queues, their messages and current subscriptions encoded in JSON format.
#### Example #### Example
``` ```bash
/status curl 127.0.0.1:4401/status
``` ```
Response Response
```json ```json
@ -242,8 +242,8 @@ Response
Displays debug information about the queue process. Currenty displays the number of goroutines only. Displays debug information about the queue process. Currenty displays the number of goroutines only.
#### Example #### Example
``` ```basg
/debug curl 127.0.0.1:4401/debug
``` ```
Response Response
```json ```json