<div dir="ltr">Working fine thanks a lot !<br> <br><a href="https://github.com/bucharest-gold/apiman-admin-client/issues/10">https://github.com/bucharest-gold/apiman-admin-client/issues/10</a><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 23, 2016 at 10:58 AM, Eric Wittmann <span dir="ltr">&lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you&#39;re just testing the node.js admin client, try this:<br>
<br>
         let plug = {<br>
             type: &#39;war&#39;,<br>
             version: &#39;1.2.5.Final&#39;,<br>
             groupId: &#39;io.apiman.plugins&#39;,<br>
             artifactId: &#39;apiman-plugins-log-policy&#39;<br>
         };<br>
<br>
The rest of the properties are not required.<br>
<br>
That should result in a successful response.<br>
<br>
-Eric<span class=""><br>
<br>
On 5/23/2016 9:52 AM, Helio Frota wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi,<br>
<br>
 --- No, no plugin created. ---<br>
<br>
Now it makes a lot of sense.<br>
<br>
Thanks again for the clarification !<br>
<br>
Wow - this also means development of nodejs-apiman-admin-client we got<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Zero &lt;&lt; issues from/with Apiman.<br>
</blockquote></blockquote>
Congratulations and thanks to all the Apiman team for this ^ too.<br>
<br>
<br>
<br>
<br>
On Mon, May 23, 2016 at 10:40 AM, Eric Wittmann<br></span><div><div class="h5">
&lt;<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a> &lt;mailto:<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>&gt;&gt; wrote:<br>
<br>
    Have you created a plugin already?  You must use maven to build and<br>
    deploy your plugin so that apiman can find it.  The endpoint you<br>
    mention is for installing a plugin, so you must provide the correct<br>
    information.<br>
<br>
    Typically the value of &quot;type&quot; would be &quot;war&quot; and the value of<br>
    &quot;classifier&quot; can simply be omitted.  The following properties are<br>
    all directly related to their identically named maven properties:<br>
<br>
            groupId, artifactId, version, type, classifier<br>
<br>
    What apiman will attempt to do when you invoke this endpoint, is<br>
    download the appropriate plugin file from maven (either by finding<br>
    it locally in your maven .m2 directory or by downloading it from a<br>
    configured remote maven repository).  The above information is<br>
    needed to identify the proper maven artifact and download it.<br>
<br>
    -Eric<br>
<br>
<br>
    On 5/20/2016 11:51 AM, Helio Frota wrote:<br>
<br>
        Hi ,<br>
<br>
        I&#39;m trying to use the endpoint :<br>
<br>
        <a href="http://localhost:8080/apiman/plugins/" rel="noreferrer" target="_blank">http://localhost:8080/apiman/plugins/</a> [ POST ]<br>
<br>
        &#39; Use this endpoint to add a plugin to apiman. &#39;<br>
<br>
        Using this object representation:<br>
<br>
        let plug = {<br>
            name: &#39;the-new-plugin&#39;,<br>
            description: &#39;the description&#39;,<br>
            type: &#39;plugs&#39;,<br>
            version: &#39;1.0.0.Final&#39;,<br>
            groupId: &#39;org.myplugins&#39;,<br>
            artifactId: &#39;superplugin&#39;,<br>
            classifier: &#39;1&#39;,<br>
            upgrade: false<br>
        };<br>
<br>
        And I&#39;m getting this error :<br>
<br>
         type: &#39;PluginNotFoundException&#39;,<br>
          errorCode: 12002,<br>
          message: &#39;org.myplugins:superplugin:1.0.0.Final-1:plugs&#39;,<br>
          moreInfoUrl: null,<br>
          stacktrace:<br>
        &#39;io.apiman.manager.api.rest.contract.exceptions.PluginNotFoundException:<br>
          ...<br>
<br>
        Maybe I&#39;m populating the object with wrong values ? [ e.g<br>
        classifier ? ]<br>
<br>
        Thanks<br>
<br>
<br>
<br>
<br>
        _______________________________________________<br>
        Apiman-user mailing list<br></div></div>
        <a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a> &lt;mailto:<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a>&gt;<br>
        <a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><span class=""><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org" target="_blank">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/apiman-user</a><br>
<br>
</span></blockquote>
</blockquote></div><br></div>