Hi Jochen,
I tried to make a simple GET request as a test to the api
url: http://gl_host_name:12900/path where path is the value I annotated
with @Path. I also have the Swagger @Api annotation at the top of the java
class. Every single method is annotated as well. However, I don't see the
rest resource in the API browser.
Thanks,
Trisha
On Monday, September 12, 2016 at 8:34:05 AM UTC-7, Jochen Schalanda wrote:
>
> 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/6e7ada47-5257-4ddf-af36-eb8fa38d1215%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.