[vertx-web-openapi] how can I use the server base path when mounting the router ?

186 views
Skip to first unread message

LordHawk

unread,
Feb 10, 2021, 1:51:14 PM2/10/21
to vert.x
Hello,

In my OpenAPI spec I have this server url: https://myhost:8443/api/V1/ws

I would like to use the "/api/V1/ws" as base for all operations paths
when mount the router.

how can I do that ?

Thanks


Thomas SEGISMONT

unread,
Feb 11, 2021, 4:38:55 AM2/11/21
to vert.x
Hi,

When the OpenAPI router is created, you could mount it as a subrouter: https://vertx.io/docs/vertx-web/java/#_sub_routers

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/8bb529c2-99d1-4778-9643-13c78543a1b2%40gmail.com.

LordHawk

unread,
Feb 11, 2021, 11:58:29 PM2/11/21
to ve...@googlegroups.com

I got it !
many thanks Thomas

Reply all
Reply to author
Forward
0 new messages