Is it possible to set @ApplicationPath ?

55 views
Skip to first unread message

Farid Zakaria

unread,
Oct 31, 2015, 7:17:51 PM10/31/15
to GWizard Discussion
I'm trying to figure out how to set @ApplicationPath (or some sort of prefix) for GWizard.

if I add the following line to my ServletContexthandler:

sch.setInitParameter("resteasy.servlet.mapping.prefix", "/api");

It allows /api/* and /* to the same @Path resources.

I've also tried binding, an Application class annotated with @ApplicationPath to no avail.


Thanks!

Shuvajit Das

unread,
Apr 1, 2016, 5:46:45 AM4/1/16
to GWizard Discussion
Can anyone answer the above question or something similar?

I just started using GWizard and I want to have all of my rest endpoints prefixed with "/api" but I have no idea how to do this.

Jeff Schnitzer

unread,
Apr 2, 2016, 2:06:12 AM4/2/16
to gwi...@googlegroups.com
I’m out this weekend but I’ll look into this on Monday!

Jeff

--
You received this message because you are subscribed to the Google Groups "GWizard Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gwizard+u...@googlegroups.com.
To post to this group, send email to gwi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gwizard/263461cb-6a8a-4808-8cf7-f2ab9eb12ad9%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Farid Zakaria

unread,
Nov 7, 2016, 8:05:56 PM11/7/16
to GWizard Discussion, je...@infohazard.org
Any update ?

Jeff Schnitzer

unread,
Nov 13, 2016, 8:17:00 PM11/13/16
to Farid Zakaria, GWizard Discussion
I added an optional parameter to the RestModule constructor which lets you pass in a path prefix, like this:

new RestModule(“/api”)

I just pushed a 0.7 release which has this (and all the other changes to date).

Cheers,
Jeff
Reply all
Reply to author
Forward
0 new messages