From 842a90a487c0543062661ba635f484996d7eb87c Mon Sep 17 00:00:00 2001 From: Johannes Thorn Date: Mon, 29 Jan 2024 10:53:57 +0100 Subject: [PATCH] Remove the incorrect lines --- Best-practices.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Best-practices.md b/Best-practices.md index 12d1e788a19..1d98402a2c7 100644 --- a/Best-practices.md +++ b/Best-practices.md @@ -84,7 +84,6 @@ The ApiRootBuilder can be used to configure it. ApiRootBuilder.of().withErrorMiddleware(); ``` -barbara79 marked this conversation as resolved. If the `defaultClient` builder method is used it will be configured. The builder also ensures that the ErrorMiddleware is always the last middleware in the call stack. The following examples shows custom configuration of the equivalent of the above method: ```java @@ -168,7 +167,7 @@ ApiRootBuilder.of().addNotFoundExceptionMiddleware(request -> request.getUri().g ### How to reuse the Client The client can be created once, it can be used by creating the **ApiRoot** object instance and reusing the object instance throughout the whole application. -barbara79 marked this conversation as resolved. + ```java ProjectApiRoot apiRoot = ApiRootBuilder.of() .defaultClient(ClientCredentials.of()