<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>To me the API is the interface to pulp, not httpie and I do not
      think you should corrupt the api to make it easier to use from
      httpie (I.e. switch to using comma separated values when json
      provides a method for specifying multiple values).  <br>
    </p>
    <p>If you want to support both on the server I think that would be
      fine, but I think if usability is a concern, a more usable CLI is
      needed!</p>
    <p>my two cents :)</p>
    <p>Justin<br>
    </p>
    <div class="moz-cite-prefix">On 5/3/19 8:48 PM, Daniel Alley wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAK1D4mDM_80jUdJ4a4mSL37CvkbCpG80q6uGqOp0icaSvw0vUA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Providing Pulp with lists of values from the command line
          is rather unweildy.  There's a lot of unnecessary escaping
          going on.<br>
        </div>
        <div><br>
        </div>
        <div><code>http POST :24817${REPO_HREF}versions/
            add_content_units:="[\"$CONTENT_HREF\",\"$CONTENT_2_HREF\"]"</code></div>
        <div><code><br>
          </code></div>
        <div><code><span class="gmail-blob-code-inner
              gmail-blob-code-marker"><span class="gmail-pl-c1">http
                POST <a
                  href="http://localhost:24817/pulp/api/v3/rpm/copy/"
                  moz-do-not-send="true">http://localhost:24817/pulp/api/v3/rpm/copy/</a>
                source_repo=${SRC_REPO_HREF} dest_repo=${DEST_REPO_HREF}
                types:="[\"errata\"]"</span></span></code></div>
        <div><br>
        </div>
        <div>Tanya, Ina and myself thought it would be worth discussing
          the idea of using something more ergonomic, like a
          comma-separated string.  This would make the endpoints much
          easier to use manually.</div>
        <div><br>
        </div>
        <div><code>http POST :24817${REPO_HREF}versions/
            add_content_units="$CONTENT_HREF,$CONTENT_2_HREF"</code></div>
        <div><code><br>
          </code></div>
        <div><code><code><span class="gmail-blob-code-inner
                gmail-blob-code-marker"><span class="gmail-pl-c1">http
                  POST <a
                    href="http://localhost:24817/pulp/api/v3/rpm/copy/"
                    moz-do-not-send="true">http://localhost:24817/pulp/api/v3/rpm/copy/</a>
                  source_repo=${SRC_REPO_HREF}
                  dest_repo=${DEST_REPO_HREF} types="errata"</span></span></code></code></div>
        <div><code><br>
          </code></div>
        <div>On the other hand, we're planning to have an actual CLI,
          then this probably isn't really an issue.  The way we're doing
          things now isn't wrong, it's just frustrating to do from a
          shell.  But I don't know exactly what our CLI plans are.</div>
        <div><br>
        </div>
        <div>What are your thoughts?<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Pulp-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Pulp-dev@redhat.com">Pulp-dev@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/pulp-dev">https://www.redhat.com/mailman/listinfo/pulp-dev</a>
</pre>
    </blockquote>
  </body>
</html>