Hi Trisha,

On Monday, 12 September 2016 17:57:14 UTC+2, Trisha Funtanilla wrote:
>
> 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.
>

Plugin JAX-RS resources are imported using a specific namespace, e. g. 
/plugins/org.example.plugin/<your 
resource path>, and also need to be registered in Graylog.

See https://github.com/Graylog2/graylog-plugin-anonymous-usage-statistics 
for an example, especially the following classes:


   - 
   
https://github.com/Graylog2/graylog-plugin-anonymous-usage-statistics/blob/2.1.0/src/main/java/org/graylog/plugins/usagestatistics/UsageStatsModule.java#L58-L59
   - 
   
https://github.com/Graylog2/graylog-plugin-anonymous-usage-statistics/blob/2.1.0/src/main/java/org/graylog/plugins/usagestatistics/UsageStatsResource.java
   
Cheers,
Jochen

-- 
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/8108b59d-5e84-469a-a249-65dbcfcd0927%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to