@@ -35,7 +35,7 @@ As explained in REST document, With JAX-RS it is important to make sure that eac
3535Let's create devon4j server. You have to modify BaseWebSecurityConfig file to allow application for basic authentication.
3636In 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--
4040createDevon4jProject("com.example.application.httprestserver")
4141changeFile("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--
5555buildJava("httprestserver", false)
5656runServerJava("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--
5959In 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====
8181You have to create a Java interface VisitormanagementRestService to invoke.
8282You 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--
8685createFile("httprestclient/api/src/main/java/com/sample/application/httprestclient/general/service/api/rest/VisitormanagementRestService.java", "files/VisitorManagementRestServiceClient.txt")
8786createFile("httprestclient/api/src/main/java/com/sample/application/httprestclient/general/service/api/rest/Devon4jRestClient.java", "files/Devon4jRestClient.java")
8887createFile("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--
9190After 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
9796An 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).
9897Now, 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--
114113buildJava("httprestclient", false)
115- nextKatacodaStep(" ", [{ "file": "files/openTerminalForClient.txt" }])
114+ nextKatacodaStep("Build and start httprestclient application ", [{ "file": "files/openTerminalForClient.txt" }])
116115runServerJava("httprestclient/server", { "startupTime": 1000, "port": 8081, "path": "httprestclient" })
117116--
118117
0 commit comments