<div dir="ltr"><div>Hi,</div><div><br></div><div> --- No, no plugin created. ---<br></div><div><br></div>Now it makes a lot of sense.<div><br></div><div><div>Thanks again for the clarification !</div><div><div><br></div><div>Wow - this also means development of nodejs-apiman-admin-client we got &gt;&gt; Zero &lt;&lt; issues from/with Apiman.<br></div><div>Congratulations and thanks to all the Apiman team for this ^ too.</div><div><br></div><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 23, 2016 at 10:40 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">Have you created a plugin already?  You must use maven to build and deploy your plugin so that apiman can find it.  The endpoint you mention is for installing a plugin, so you must provide the correct information.<br>
<br>
Typically the value of &quot;type&quot; would be &quot;war&quot; and the value of &quot;classifier&quot; can simply be omitted.  The following properties are 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 download the appropriate plugin file from maven (either by finding it locally in your maven .m2 directory or by downloading it from a configured remote maven repository).  The above information is needed to identify the proper maven artifact and download it.<br>
<br>
-Eric<div><div class="h5"><br>
<br>
On 5/20/2016 11:51 AM, Helio Frota wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
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 classifier ? ]<br>
<br>
Thanks<br>
<br>
<br>
<br>
<br></div></div>
_______________________________________________<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>
</blockquote>
</blockquote></div><br></div>