Skip to content

Commit 82c82eb

Browse files
author
dixyushi
committed
text realigned
1 parent fb10fa8 commit 82c82eb

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

devon4j-http-rest-client/index.asciidoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ restoreDevonfwIde(["java", "vscode"])
2020
--
2121

2222
====
23-
## REST
2423
REST (REpresentational State Transfer) is an inter-operable protocol for services that is more lightweight than SOAP.
2524
2625
For implementing REST services we use the JAX-RS standard. As an implementation we recommend CXF. For JSON bindings we use Jackson while XML binding works out-of-the-box with JAXB. To implement a service you write an interface with JAX-RS annotations for the API and a regular implementation class annotated with @Named to make it a spring-bean.
@@ -39,6 +38,7 @@ As explained in REST document, With JAX-RS it is important to make sure that eac
3938
Let's create devon4j server. You have to modify BaseWebSecurityConfig file to allow application for basic authentication.
4039
In below example you will create VisitormanagementRestService and it's implementation i.e. VisitormanagementRestServiceImpl using JAX-RS standard.
4140
[step]
41+
== REST
4242
--
4343
createDevon4jProject("com.example.application.httprestserver")
4444
changeFile("httprestserver/core/src/main/java/com/example/application/httprestserver/general/service/impl/config/BaseWebSecurityConfig.java", { "file": "files/BaseWebSecurityConfig.txt" })
@@ -120,19 +120,19 @@ changeFile("httprestclient/core/src/main/resources/config/application.properties
120120
--
121121
122122
## Service Discovery
123-
*service.client.default.url* :- It is used to set the default url of server and it is added for service discovery.
124-
*service.client.app.httprestserver.url* :- This property provide base url of REST in your application. It follows format such as "service.client.app.«application».url". Here, «application» refers to the technical name of the application providing the service.
123+
**service.client.default.url** :- It is used to set the default url of server and it is added for service discovery.
124+
**service.client.app.httprestserver.url** :- This property provide base url of REST in your application. It follows format such as "service.client.app.«application».url". Here, «application» refers to the technical name of the application providing the service.
125125
126126
## Timeouts
127-
*service.client.default.timeout.connection* :- It is used to set the default timeout for particular connection.
128-
*service.client.default.timeout.response* :- It is used to set the default timeout for particular response.
127+
**service.client.default.timeout.connection** :- It is used to set the default timeout for particular connection.
128+
**service.client.default.timeout.response** :- It is used to set the default timeout for particular response.
129129
130130
## Headers
131-
*service.client.app.httprestserver.auth* :- It is used for customization of Service Header. Here it is used for basic authentication.
131+
**service.client.app.httprestserver.auth** :- It is used for customization of Service Header. Here it is used for basic authentication.
132132
133133
## Authentication
134-
*service.client.app.httprestserver.user.login* :- It is used to set username of server for authentication
135-
*service.client.app.httprestserver.user.password* :- It is used to set password.
134+
**service.client.app.httprestserver.user.login** :- It is used to set username of server for authentication
135+
**service.client.app.httprestserver.user.password** :- It is used to set password.
136136
Now, after configuration you have to build and then start the client application.
137137
====
138138

0 commit comments

Comments
 (0)