<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"><<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you're just testing the node.js admin client, try this:<br>
<br>
let plug = {<br>
type: 'war',<br>
version: '1.2.5.Final',<br>
groupId: 'io.apiman.plugins',<br>
artifactId: 'apiman-plugins-log-policy'<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 << 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">
<<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a> <mailto:<a href="mailto:eric.wittmann@redhat.com" target="_blank">eric.wittmann@redhat.com</a>>> 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 "type" would be "war" and the value of<br>
"classifier" 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'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>
' Use this endpoint to add a plugin to apiman. '<br>
<br>
Using this object representation:<br>
<br>
let plug = {<br>
name: 'the-new-plugin',<br>
description: 'the description',<br>
type: 'plugs',<br>
version: '1.0.0.Final',<br>
groupId: 'org.myplugins',<br>
artifactId: 'superplugin',<br>
classifier: '1',<br>
upgrade: false<br>
};<br>
<br>
And I'm getting this error :<br>
<br>
type: 'PluginNotFoundException',<br>
errorCode: 12002,<br>
message: 'org.myplugins:superplugin:1.0.0.Final-1:plugs',<br>
moreInfoUrl: null,<br>
stacktrace:<br>
'io.apiman.manager.api.rest.contract.exceptions.PluginNotFoundException:<br>
...<br>
<br>
Maybe I'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> <mailto:<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><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>