You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+78-69
Original file line number
Diff line number
Diff line change
@@ -12,23 +12,25 @@ This guide will help you get started with Contentstack Java Utils SDK to build a
12
12
13
13
### SDK Installation and Setup
14
14
15
-
To setup [Utils SDK](https://mvnrepository.com/artifact/com.contentstack.sdk/utils) in your Java project, add the following dependency in the pom.xml file
15
+
To setup [Utils SDK](https://mvnrepository.com/artifact/com.contentstack.sdk/utils) in your Java project, add the
16
+
following dependency in the pom.xml file
16
17
17
18
```java
18
19
<dependency>
19
-
<groupId>com.contentstack.sdk</groupId>
20
-
<artifactId>util</artifactId>
21
-
<version>{latest}</version>
20
+
<groupId>com.contentstack.sdk</groupId>
21
+
<artifactId>util</artifactId>
22
+
<version>{latest}</version>
22
23
</dependency>
23
24
```
24
25
25
-
If you are using Contentstack Java SDK, then the Utils SDK is already imported into your project, and the dependency snippet will look as below
26
+
If you are using Contentstack Java SDK, then the Utils SDK is already imported into your project, and the dependency
27
+
snippet will look as below
26
28
27
29
```java
28
30
<dependency>
29
-
<groupId>com.contentstack.sdk</groupId>
30
-
<artifactId>java</artifactId>
31
-
<version>{latest}</version>
31
+
<groupId>com.contentstack.sdk</groupId>
32
+
<artifactId>java</artifactId>
33
+
<version>{latest}</version>
32
34
</dependency>
33
35
```
34
36
@@ -40,18 +42,20 @@ Let’s learn how you can use Utils SDK to render embedded items.
40
42
41
43
### Create Render Option
42
44
43
-
To render embedded items on the front-end, use the renderContents function, and define the UI elements you want to show in the front-end of your website, as shown in the example code below:
45
+
To render embedded items on the front-end, use the renderContents function, and define the UI elements you want to show
46
+
in the front-end of your website, as shown in the example code below:
Contentstack Utils SDK lets you interact with the Content Delivery APIs and retrieve embedded items from the RTE field of an entry.
104
+
Contentstack Utils SDK lets you interact with the Content Delivery APIs and retrieve embedded items from the RTE field
105
+
of an entry.
100
106
101
107
#### Fetch Embedded Item(s) from a Single Entry
102
108
103
-
To get an embedded item of a single entry, you need to provide the stack API key, environment name, delivery token, content type’s UID and entry’s UID. Then, use the includeEmbeddedItems function as shown below:
109
+
To get an embedded item of a single entry, you need to provide the stack API key, environment name, delivery token,
110
+
content type’s UID and entry’s UID. Then, use the includeEmbeddedItems function as shown below:
To get multiple entries, you need to provide the stack API key, environment name, delivery token, content type and entry UID. Then, use the Utils.jsonToHTML function as shown below:
166
+
To get multiple entries, you need to provide the stack API key, environment name, delivery token, content type and entry
167
+
UID. Then, use the Utils.jsonToHTML function as shown below:
0 commit comments