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
Contentstack is a headless CMS with an API-first approach. It is a CMS that developers can use to build powerful cross-platform applications in their favorite languages. Build your application frontend, and Contentstack will take care of the rest. [Read More](https://www.contentstack.com/).
6
6
7
7
Contentstack provides Java SDK to build application on top of Java. Given below is the detailed guide and helpful resources to get started with our Java SDK.
8
8
9
-
10
9
### Prerequisite
11
10
12
11
You will need JDK installed on your machine. You can install it from [here](http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html).
@@ -15,13 +14,14 @@ You will need JDK installed on your machine. You can install it from [here](http
15
14
16
15
To use the Contentstack Java SDK to your existing project, perform the steps given below:
@@ -59,19 +60,17 @@ Assets refer to all the media files (images, videos, PDFs, audio files, and so o
59
60
60
61
A publishing environment corresponds to one or more deployment servers or a content delivery destination where the entries need to be published. Learn how to work with [Environments](https://www.contentstack.com/docs/guide/environments).
61
62
62
-
63
-
64
63
### Contentstack Java SDK: 5-minute Quickstart
65
64
66
65
#### Initializing your SDK
67
66
68
67
To initialize the SDK, specify application API key, access token, and environment name of the stack as shown in the snippet given below:
To get the API credentials mentioned above, log in to your Contentstack account and then in your top panel navigation, go to Settings > Stack to view the API Key and Access Token.
73
-
74
72
73
+
To get the API credentials mentioned above, log in to your Contentstack account and then in your top panel navigation, go to Settings > Stack to view the API Key and Access Token.
75
74
76
75
#### Querying content from your stack
77
76
@@ -101,7 +100,7 @@ To retrieve multiple entries of a particular content type, use the code snippet
You can query for content types, entries, assets and more using our Java API Reference.
@@ -121,7 +119,7 @@ You can query for content types, entries, assets and more using our Java API Ref
121
119
122
120
We have introduced Image Delivery APIs that let you retrieve images and then manipulate and optimize them for your digital properties. It lets you perform a host of other actions such as crop, trim, resize, rotate, overlay, and so on.
123
121
124
-
For example, if you want to crop an image (with width as 300 and height as 400), you simply need to append query parameters at the end of the image URL, such as, https://images.contentstack.io/v3/assets/download?crop=300,400. There are several more parameters that you can use for your images.
122
+
For example, if you want to crop an image (with width as 300 and height as 400), you simply need to append query parameters at the end of the image URL, such as, <https://images.contentstack.io/v3/assets/download?crop=300>,400. There are several more parameters that you can use for your images.
125
123
126
124
[Read Image Delivery API documentation](https://www.contentstack.com/docs/apis/image-delivery-api/).
0 commit comments