Following with interest. We've discussed moving our server side from
GWT-RPC to Rest many times, but all of the libs have come up short on us so
far. Domino was the one we had left to look into at some stage when time
becomes available.
On Monday, 10 November 2025 at 15:06:40 UTC Michael Conrad wrote:
> Hello all, for domino-rest, are formats like {uid:[0-9]+} not supported?
> Am I doing something else wrong again in my attempt to migrate off of
> resty-gwt/gwt-jackson? Is this a lost cause and I should just reverse
> course?
>
> My jakarta jersey rest endpoint is defined as:
>
> @Consumes(MediaType.APPLICATION_JSON)@Produces(MediaType.APPLICATION_JSON)@Path("/1.0")public
> interface UserV1Jakarta {
> @Path("/entitlements/modules/{uid:[0-9]+}")
> @GET
> EntitlementsModulesResponse entitlementsModules(@PathParam("uid") String
> uid, //
>
> @HeaderParam(HeaderConsts.TOKEN) String token);//other methods snipped.
> }
>
> I am using the following for the gwt side implementation:
>
> // ...import
> org.dominokit.rest.shared.request.service.annotations.RequestFactory;
> @RequestFactory(serviceRoot = ApplicationPaths.API_CONTEXT +
> ApplicationPaths.BUTTER_USER)public interface UserV1 extends UserV1Jakarta {
>
> }
>
> I’m calling it as follows:
>
> Console console = DomGlobal.console;UserV1Factory userV1 =
> UserV1Factory.INSTANCE;DominoRestConfig config =
> DominoRestConfig.getInstance();
> console.log("DominoRestConfig initialized");
> userV1.entitlementsModules("0", "not-used").onSuccess(m->{
> console.log("Got entitlements modules");
> m.result.forEach(System.out::println);
> }).onFailed(e->{
> console.log("Failed to get modules");
> console.log(e.getHeaders());
> console.log(e.getBody());
> console.log(e.getStatusText());
> console.log(e.getThrowable());
> }).send();
>
> And I’m getting in the JS console (superdev mode so I can see any
> exceptions):
>
> Could not RunAsync request
> [com.newsrx.butter.client.domino.api.UserV1Factory$UserV1_entitlementsModules@3]
> ConsoleLogger.java:33:1Exception:
> org.dominokit.rest.shared.request.exception.PathParameterMissingException: No
> parameter provided for path [{uid:[0-9]+}] ConsoleLogger.java:55:1
>
> -Mike
> ​
>
--
You received this message because you are subscribed to the Google Groups "GWT
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/google-web-toolkit/e63f7cf1-465f-4880-9500-a57bcc3a57can%40googlegroups.com.