From fbfd5e4727c482e4b3ddf597ea9433a57d96aa72 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sun, 13 Jul 2014 17:26:05 +0700 Subject: [PATCH] Use curl examples --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 738eb9b..50ceead 100644 --- a/README.md +++ b/README.md @@ -192,8 +192,8 @@ Publication can be done via both `GET` and `POST` methods. To publish a message Server will respond with `OK` message. #### Example -``` -/publish?queue=urgent&msg=Process+this+message+as+soon+as+possible! +```bash +curl '127.0.0.1:4401/publish?queue=urgent' -d 'Process this message as soon as possible!' ``` 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. #### Example -``` -/subscribe?queues=urgent,someday +```bash +curl '127.0.0.1:4401/subscribe?queues=urgent,someday' ``` 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. #### Example -``` -/status +```bash +curl 127.0.0.1:4401/status ``` Response ```json @@ -242,8 +242,8 @@ Response Displays debug information about the queue process. Currenty displays the number of goroutines only. #### Example -``` -/debug +```basg +curl 127.0.0.1:4401/debug ``` Response ```json