From 33a42af93700ec855875b2f064fe114d96b0675e Mon Sep 17 00:00:00 2001 From: shaileshmishra Date: Thu, 18 Feb 2021 16:26:58 +0530 Subject: [PATCH 1/3] Added Support in Query: Querying content with `null` Added testcase to test null support in addParams() function updated test package name to access protected members for better testing experience. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1ceb93d2..e83c5555 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 com.contentstack.sdk java - 1.5.6 + 1.5.7-SNAPSHOT jar contentstack-java Java SDK for Contentstack Content Delivery API, Contentstack is a headless CMS with an API-first approach From 7db6dfdc4498ea4cd38d081f1003115807a42e0e Mon Sep 17 00:00:00 2001 From: shaileshmishra Date: Thu, 18 Feb 2021 16:37:53 +0530 Subject: [PATCH 2/3] CHANGELOG.md updated. README.md updated --- CHANGELOG.md | 8 +++++++- README.md | 35 ++++++++++++++++++----------------- 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74ddbe6d..350acb22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ +# CHANGELOG -## CHANGELOG +## Version 1.5.7 +###### Date: 20-Feb-2021 +Document updated + +#23 Fixed Issue: Querying content with `null` field +• Query: query content by specifying fields as null ## Version 1.5.6 ###### Date: 27-Jan-2021 diff --git a/README.md b/README.md index 9af16982..3f96a618 100644 --- a/README.md +++ b/README.md @@ -20,13 +20,13 @@ To use the Contentstack Java SDK to your existing project, perform the steps giv com.contentstack.sdk java - 1.5.6 + 1.5.7 ``` 2. **Gradle** ```java -implementation 'com.contentstack.sdk:java:1.5.6' +implementation 'com.contentstack.sdk:java:1.5.7' ``` ### Key Concepts for using Contentstack @@ -59,7 +59,7 @@ A publishing environment corresponds to one or more deployment servers or a cont To initialize the SDK, specify application API key, access token, and environment name of the stack as shown in the snippet given below: ```java -Stack stack = Contentstack.stack( "apiKey", "accessToken", "environment_name"); +Stack stack = Contentstack.stack( "APIKey", "accessToken", "environment_name"); ``` 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,13 +73,13 @@ To retrieve a single entry from a content type use the code snippet given below: ContentType contentType = stack.contentType("content_type_uid"); Entry blogEntry = contentType.entry("entry_uid"); blogEntry.fetch(new EntryResultCallBack() { -@Override -public void onCompletion(ResponseType responseType, Error error) { - if (error == null) { - [Success block] - } else { - [Error block] - }} + @Override + public void onCompletion(ResponseType responseType, Error error) { + if (error == null) { + //Success block + } else { + //Error block + }} }); ``` ##### Get Multiple Entries @@ -90,13 +90,14 @@ To retrieve multiple entries of a particular content type, use the code snippet //stack is an instance of Stack class Query blogQuery = stack.contentType("content_type_uid").query(); blogQuery.find(new QueryResultsCallBack() { -@Override -publicvoidonCompletion(ResponseType responseType, QueryResult queryResult, Error error) { - if(error == null){ - [Success block] - }else{ - [Error block] - }}}); + @Override + public void onCompletion(ResponseType responseType, QueryResult queryResult, Error error) { + if(error == null){ + //Success block + }else{ + //Error block + }} +}); ``` From 93bd3fa12cbca4e795dc09281250a28203c1aa72 Mon Sep 17 00:00:00 2001 From: shaileshmishra Date: Fri, 26 Feb 2021 10:54:13 +0530 Subject: [PATCH 3/3] CHANGELOG.md updated. README.md updated --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e83c5555..e7ee788a 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ 4.0.0 com.contentstack.sdk java - 1.5.7-SNAPSHOT + 1.5.7 jar contentstack-java Java SDK for Contentstack Content Delivery API, Contentstack is a headless CMS with an API-first approach