Skip to content

Commit 47aac35

Browse files
v1.12.3
- Taxonomy query support - Early Access Feature Support
1 parent cee25e3 commit 47aac35

File tree

10 files changed

+431
-272
lines changed

10 files changed

+431
-272
lines changed

src/main/java/com/contentstack/sdk/APIService.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
import retrofit2.Call;
55
import retrofit2.http.GET;
66
import retrofit2.http.HeaderMap;
7+
import retrofit2.http.QueryMap;
78
import retrofit2.http.Url;
89

910
import java.util.LinkedHashMap;
11+
import java.util.Map;
1012

1113
/**
1214
* @author Shailesh Mishra
@@ -15,5 +17,11 @@
1517
*/
1618
public interface APIService {
1719
@GET
18-
Call<ResponseBody> getRequest(@Url String url, @HeaderMap LinkedHashMap<String, Object> headers);
20+
Call<ResponseBody> getRequest(
21+
@Url String url, @HeaderMap LinkedHashMap<String, Object> headers);
22+
23+
@GET("v3/taxonomies/entries")
24+
Call<ResponseBody> getTaxonomy(
25+
@HeaderMap Map<String, Object> headers,
26+
@QueryMap(encoded = true) Map<String, Object> query);
1927
}

src/main/java/com/contentstack/sdk/Config.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ public enum ContentstackRegion {
168168

169169

170170
/**
171-
* The configuration for the contentstack that contains support for Early Access Feature
171+
* To initialize the SDK with the latest features offered in the early access phase,
172+
* include the early access parameter as shown in the following code:
172173
*
173174
* @param earlyAccessFeatures The list of Early Access Features
174175
* {@code

src/main/java/com/contentstack/sdk/Constants.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public class Constants {
2626
protected static final String CONTENT_TYPE_UID = "content_type_uid";
2727
protected static final String ENTRY_UID = "entry_uid";
2828
protected static final String LIVE_PREVIEW = "live_preview";
29+
30+
protected static final String TaxonomyPath = "/taxonomies/entries?query";
2931
protected static final String SYNCHRONISATION = "stacks/sync";
3032
// Errors
3133
protected static final String ERROR_CODE = "error_code";

0 commit comments

Comments
 (0)