Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions vertx-web-api-service/src/main/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ This handler sends some data extracted from {@link io.vertx.ext.web.RoutingConte

[source,$lang]
----
{@link examples.ApiCodegenExamples#mountHandler}
{@link examples.api.service.ApiCodegenExamples#mountHandler}
----

You can also define the {@link io.vertx.core.eventbus.DeliveryOptions} that will be used each time a message is sent through the event bus:

[source,$lang]
----
{@link examples.ApiCodegenExamples#mountHandlerWithTimeout}
{@link examples.api.service.ApiCodegenExamples#mountHandlerWithTimeout}
----

IMPORTANT: Before mounting the {@link io.vertx.ext.web.api.service.RouteToEBServiceHandler}, you *must* mount a
Expand All @@ -87,7 +87,7 @@ Let's assume we have defined two different routes in our {@link io.vertx.ext.web

[source,$lang]
----
{@link examples.ApiCodegenExamples#serviceMountExample}
{@link examples.api.service.ApiCodegenExamples#serviceMountExample}
----

`GET /api/transactions` receives two optional query parameters as input: `from` and `to`. `PUT /api/transactions` receives a {@link io.vertx.core.json.JsonObject} as request body
Expand Down Expand Up @@ -147,14 +147,14 @@ For example the implementation of `TransactionService#getTransactionsList` looks

[source,$lang]
----
{@link examples.ApiCodegenExamples#implGetTransactionsListSuccess}
{@link examples.api.service.ApiCodegenExamples#implGetTransactionsListSuccess}
----

Or when it fails:

[source,$lang]
----
{@link examples.ApiCodegenExamples#implGetTransactionsListFailure}
{@link examples.api.service.ApiCodegenExamples#implGetTransactionsListFailure}
----

=== The `ServiceRequest` data object
Expand Down Expand Up @@ -184,7 +184,7 @@ Now you can register your service to event bus:

[source,$lang]
----
{@link examples.ApiCodegenExamples#serviceMount}
{@link examples.api.service.ApiCodegenExamples#serviceMount}
----

For more info on how to expose your service look at https://vertx.io/docs/vertx-service-proxy/java/#_exposing_your_service[Vert.x service proxy documentation]
Expand All @@ -196,7 +196,7 @@ The validation of this {@link io.vertx.ext.web.openapi.router.OpenAPIRoute} *MUS

[source,$lang]
----
{@link examples.OpenAPIExamples#addHandler}
{@link examples.api.service.OpenAPIExamples#addHandler}
----

=== OpenAPI contract extension
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package examples;
package examples.api.service;

import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*
*/

package examples;
package examples.api.service;

import io.vertx.core.Vertx;
import io.vertx.docgen.Source;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package examples;
package examples.api.service;

import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.api.service.ServiceRequest;
import io.vertx.ext.web.api.service.ServiceResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package examples;
package examples.api.service;

import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.json.JsonObject;
import io.vertx.ext.web.api.service.ServiceRequest;
import io.vertx.ext.web.api.service.ServiceResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@Source(translate = false)
@ModuleGen(name = "examples", groupPackage = "examples")
package examples;
package examples.api.service;

import io.vertx.codegen.annotations.ModuleGen;
import io.vertx.docgen.Source;
Loading
Loading