From b3453c3a916dbe59bdccd8bd44314470b2931ae6 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Mon, 5 Aug 2013 12:13:32 +0000 Subject: NO-JIRA: [Java Broker Documentation] Correct forms of REST service urls for message and message-content services. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1510441 13f79535-47bb-0310-9956-ffa450edef68 --- ...Java-Broker-Configuring-And-Managing-REST-API.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'qpid/doc/book/src/java-broker/Java-Broker-Configuring-And-Managing-REST-API.xml') diff --git a/qpid/doc/book/src/java-broker/Java-Broker-Configuring-And-Managing-REST-API.xml b/qpid/doc/book/src/java-broker/Java-Broker-Configuring-And-Managing-REST-API.xml index 1178b987ff..7ec2428414 100644 --- a/qpid/doc/book/src/java-broker/Java-Broker-Configuring-And-Managing-REST-API.xml +++ b/qpid/doc/book/src/java-broker/Java-Broker-Configuring-And-Managing-REST-API.xml @@ -119,7 +119,7 @@ /rest/queue - /rest/queue/<virtual host name>/>queue name> + /rest/queue/<virtual host name>/<queue name> Rest service to manage queue(s) Retrieves the details about the queue(s) @@ -173,7 +173,7 @@ - /rest/message/* + /rest/message/<virtual host name>/<queue name> Rest service to manage messages(s) Retrieves the details about the messages(s) @@ -183,7 +183,7 @@ - /rest/message-content/* + /rest/message-content/<virtual host name>/<queue name> Rest service to retrieve message content Retrieves the message content @@ -275,22 +275,22 @@ all bindings for all queues for the given exchange in the virtual host. - Examples of queue creation using curl: + Examples of queue creation using curl (authenticating as user admin): / +curl --user admin -X PUT -d '{"durable":true}' http://localhost:8080/rest/queue// #create a durable priority queue -curl -X PUT -d '{"durable":true,"type":"priority"}' http://localhost:8080/rest/queue// +curl --user admin -X PUT -d '{"durable":true,"type":"priority"}' http://localhost:8080/rest/queue// ]]> Example of binding a queue to an exchange using curl /// +curl --user admin -X PUT -d '{}' http://localhost:8080/rest/binding//// ]]> - NOTE: the above examples were performed after editing the - HTTP Management Plugin Configuration - to enable HTTP Basic Authentication on connections not using SSL (i.e HTTPS). + NOTE: These curl examples utilise unsecure HTTP transport. To use the examples it is first necessary enable Basic + authentication for HTTP within the HTTP Management Configuration (it is off by default). + For details see -- cgit v1.2.1