Skip to content

Commit d36f81a

Browse files
author
dixyushi
committed
fixed review comments
1 parent 5dfe2aa commit d36f81a

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

devon4j-http-rest-client/index.asciidoc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ As explained in REST document, With JAX-RS it is important to make sure that eac
3535
Let's create devon4j server. You have to modify BaseWebSecurityConfig file to allow application for basic authentication.
3636
In below example you will create VisitormanagementRestService and it's implementation i.e. VisitormanagementRestServiceImpl using JAX-RS standard.
3737
[step]
38-
== Create the devon4j-HTTP-REST-SERVER
38+
== Create the devon4j REST SERVER
3939
--
4040
createDevon4jProject("com.example.application.httprestserver")
4141
changeFile("httprestserver/core/src/main/java/com/example/application/httprestserver/general/service/impl/config/BaseWebSecurityConfig.java", { "file": "files/BaseWebSecurityConfig.txt" })
@@ -54,7 +54,7 @@ You have successfully built the REST-server. Now, you have to start the build an
5454
--
5555
buildJava("httprestserver", false)
5656
runServerJava("httprestserver/server", { "startupTime": 1000, "port": 8080, "path": "httprestserver" })
57-
nextKatacodaStep(" ", [{ "file": "files/viewPort.txt" }])
57+
nextKatacodaStep("Build and start the httprestserver application ", [{ "file": "files/viewPort.txt" }])
5858
--
5959
In next step, You have to create devon4j service Client.
6060
====
@@ -74,26 +74,25 @@ Then, You need to add required dependency to your application.
7474

7575
[step]
7676
--
77-
nextKatacodaStep("Dependency Setup ", [{ "file": "files/dependency.txt" }])
77+
nextKatacodaStep("Dependency Setup", [{ "file": "files/dependency.txt" }])
7878
--
7979

8080
====
8181
You have to create a Java interface VisitormanagementRestService to invoke.
8282
You have to create rest client i.e. Devon4jRestClient.java and it's implementation class i.e. Devon4jRestClientImpl.java.
8383
[step]
84-
== Create devon4j rest client
8584
--
8685
createFile("httprestclient/api/src/main/java/com/sample/application/httprestclient/general/service/api/rest/VisitormanagementRestService.java", "files/VisitorManagementRestServiceClient.txt")
8786
createFile("httprestclient/api/src/main/java/com/sample/application/httprestclient/general/service/api/rest/Devon4jRestClient.java", "files/Devon4jRestClient.java")
8887
createFile("httprestclient/core/src/main/java/com/sample/application/httprestclient/general/service/impl/rest/Devon4jRestClientImpl.java", "files/Devon4jRestClientImpl.java")
89-
nextKatacodaStep(" ", [{ "file": "files/explainSynchronousCall.txt" }])
88+
nextKatacodaStep("Create devon4j Rest Client", [{ "file": "files/explainSynchronousCall.txt" }])
9089
--
9190
After getting response, you can handle the response further in your implementation. Here, you can see that response is getting handled in "showResponse" method.
9291
====
9392

9493

9594
====
96-
# Configuration
95+
== Configuration
9796
An application needs to be configurable in order to allow internal setup but also to allow externalized configuration of a deployed package (e.g. integration into runtime environment).
9897
Now, You need to modifiy the content of existing properties files and add configuration for Server.
9998
[step]
@@ -112,7 +111,7 @@ This might take some time for application to start.
112111
[step]
113112
--
114113
buildJava("httprestclient", false)
115-
nextKatacodaStep(" ", [{ "file": "files/openTerminalForClient.txt" }])
114+
nextKatacodaStep("Build and start httprestclient application", [{ "file": "files/openTerminalForClient.txt" }])
116115
runServerJava("httprestclient/server", { "startupTime": 1000, "port": 8081, "path": "httprestclient" })
117116
--
118117

0 commit comments

Comments
 (0)