Hi Tricia,

which URL did you try to call?

Plugin JAX-RS resources are imported using a specific namespace. You can 
check the URL of your plugin resource using the API browser of Graylog 
(given that you've applied the Swapper @Api annotations).

Cheers,
Jochen

On Monday, 12 September 2016 17:04:20 UTC+2, Trisha Funtanilla wrote:
>
> Hi,
>
> I developed a Graylog plugin and the rest resource for it. I am having 
> trouble trying to get the Graylog server to recognize the rest apis. I 
> registered the rest resource inside the configure() method in my plugin 
> module. However, whenever I try to make a request, I get:
>
> {
>
>    - type: "ApiError",
>    - message: "HTTP 404 Not Found"
>    
> } 
>
> In developing the rest resource, I used this class as a sort of template: 
> org.graylog2.rest.resources.filters.BlacklistSourceResource and then 
> implemented the PluginRestResource interface. I then just basically 
> followed how the org.graylog2.filters.FilterService and 
> org.graylog2.filters.FilterServiceImpl were written. I am missing 
> something? How do I get the Graylog server to recognize the rest resource 
> for my plugin?
>
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/d238bb34-f2f7-444f-aa58-ac2081aabd0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to