)]}'
{"doc/source/api/userguide/consumers.rst":[{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"06085af6026012294437730d8f82b34c94e492df","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":".. code-block:: bash"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"     curl -X POST -H \u0027X-Auth-Token: \u0027\"$TOKEN\"\u0027\u0027 -H \u0027Content-Type: application/json\u0027 \\"},{"line_number":26,"context_line":"     -d \u0027{\"name\": \"consumername\", \"URL\": \"consumerURL\"}\u0027 \\"},{"line_number":27,"context_line":"      http://localhost:9311/v1/containers/74bbd3fd-9ba8-42ee-b87e-2eecf10e47b9/consumers"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9a8ffd7b_91993822","line":25,"updated":"2015-12-01 00:51:48.000000000","message":"I think all the quote marks are distracting.  What do you think about -H \"X-Auth-Token: $TOKEN\" instead?","commit_id":"3ba3e4a661caff8b0f2257b48a9c9ef02c60ca3a"},{"author":{"_account_id":11561,"name":"Dave McCowan","email":"dmccowan@cisco.com","username":"dave-mccowan"},"change_message_id":"e4c1885681a91a40087e723594f760c2cad8ab29","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":".. code-block:: bash"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"     curl -X POST -H \u0027X-Auth-Token: \u0027\"$TOKEN\"\u0027\u0027 -H \u0027Content-Type: application/json\u0027 \\"},{"line_number":26,"context_line":"     -d \u0027{\"name\": \"consumername\", \"URL\": \"consumerURL\"}\u0027 \\"},{"line_number":27,"context_line":"      http://localhost:9311/v1/containers/74bbd3fd-9ba8-42ee-b87e-2eecf10e47b9/consumers"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9a8ffd7b_a68f2422","line":25,"in_reply_to":"9a8ffd7b_482531c0","updated":"2015-12-01 21:24:02.000000000","message":"I also don\u0027t have a strong opinion, but the option is to use double quotes, instead of single quotes.\n\n-H \"X-Auth-Token: $TOKEN\"\n\nThen you have one set of quotes, instead of 3 sets of quotes.\nBash gurus might prefer the 3 sets of quotes.  Our readers might prefer the simplicity of one set of quotes to understand what value needs to be passed.","commit_id":"3ba3e4a661caff8b0f2257b48a9c9ef02c60ca3a"},{"author":{"_account_id":10281,"name":"Priti Desai","email":"pdesai@us.ibm.com","username":"priti_desai"},"change_message_id":"33807d310a6efbd36ec25d84015965620b6f30ff","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":".. code-block:: bash"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"     curl -X POST -H \u0027X-Auth-Token: \u0027\"$TOKEN\"\u0027\u0027 -H \u0027Content-Type: application/json\u0027 \\"},{"line_number":26,"context_line":"     -d \u0027{\"name\": \"consumername\", \"URL\": \"consumerURL\"}\u0027 \\"},{"line_number":27,"context_line":"      http://localhost:9311/v1/containers/74bbd3fd-9ba8-42ee-b87e-2eecf10e47b9/consumers"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9a8ffd7b_a8593d37","line":25,"in_reply_to":"9a8ffd7b_6dbe30d6","updated":"2015-12-01 17:37:28.000000000","message":"Yup, curl command without quotes wouldn\u0027t work, if someone runs the exact same command (copy/paste) without quotes, it fails saying \"Authentication Required\" which is misleading and takes an extra effort to spot the issue which is lack of quotes. I agree quotes are distracting but they are needed syntactically, thoughts?","commit_id":"3ba3e4a661caff8b0f2257b48a9c9ef02c60ca3a"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"71524e6b5ff661511fad55383203deb245d68a5e","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":".. code-block:: bash"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"     curl -X POST -H \u0027X-Auth-Token: \u0027\"$TOKEN\"\u0027\u0027 -H \u0027Content-Type: application/json\u0027 \\"},{"line_number":26,"context_line":"     -d \u0027{\"name\": \"consumername\", \"URL\": \"consumerURL\"}\u0027 \\"},{"line_number":27,"context_line":"      http://localhost:9311/v1/containers/74bbd3fd-9ba8-42ee-b87e-2eecf10e47b9/consumers"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9a8ffd7b_6dbe30d6","line":25,"in_reply_to":"9a8ffd7b_91993822","updated":"2015-12-01 06:11:37.000000000","message":"Even though it won\u0027t be the most correct thing in bash, I rather have it as Dave suggested. Either way, people should be using the barbicanclient and not curl directly.","commit_id":"3ba3e4a661caff8b0f2257b48a9c9ef02c60ca3a"},{"author":{"_account_id":10281,"name":"Priti Desai","email":"pdesai@us.ibm.com","username":"priti_desai"},"change_message_id":"844d6ba0325909aee01dcf5a278d388abaf2a8f7","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":".. code-block:: bash"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"     curl -X POST -H \u0027X-Auth-Token: \u0027\"$TOKEN\"\u0027\u0027 -H \u0027Content-Type: application/json\u0027 \\"},{"line_number":26,"context_line":"     -d \u0027{\"name\": \"consumername\", \"URL\": \"consumerURL\"}\u0027 \\"},{"line_number":27,"context_line":"      http://localhost:9311/v1/containers/74bbd3fd-9ba8-42ee-b87e-2eecf10e47b9/consumers"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9a8ffd7b_b7ff4c00","line":25,"in_reply_to":"9a8ffd7b_a68f2422","updated":"2015-12-02 21:35:18.000000000","message":"Thanks Dave, I think the number of quotes doesn\u0027t look that bad on API Doc: \n\nhttp://docs-draft.openstack.org/93/251593/1/check/gate-barbican-docs/c51196e//doc/build/html/api/userguide/consumers.html\n\nChanging it to -H \"X-Auth-Token: $TOKEN\" will create a mismatch of using single and double quotes, for example, Content-Type header is written using single quotes, I am changing Content-Type header as well for consistency. Finally, \nhave it as \"X-Auth-Token: $TOKEN\" and \"Content-Type: application/json\".","commit_id":"3ba3e4a661caff8b0f2257b48a9c9ef02c60ca3a"},{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"012189cc016b7c4401e02f7bba5b286c70cf7fc5","unresolved":false,"context_lines":[{"line_number":22,"context_line":""},{"line_number":23,"context_line":".. code-block:: bash"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"     curl -X POST -H \u0027X-Auth-Token: \u0027\"$TOKEN\"\u0027\u0027 -H \u0027Content-Type: application/json\u0027 \\"},{"line_number":26,"context_line":"     -d \u0027{\"name\": \"consumername\", \"URL\": \"consumerURL\"}\u0027 \\"},{"line_number":27,"context_line":"      http://localhost:9311/v1/containers/74bbd3fd-9ba8-42ee-b87e-2eecf10e47b9/consumers"},{"line_number":28,"context_line":""}],"source_content_type":"text/x-rst","patch_set":1,"id":"9a8ffd7b_482531c0","line":25,"in_reply_to":"9a8ffd7b_a8593d37","updated":"2015-12-01 17:40:29.000000000","message":"I have no strong opinion on this, you can keep it or not, it\u0027s the same for me.","commit_id":"3ba3e4a661caff8b0f2257b48a9c9ef02c60ca3a"}]}
