Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CS-42935/feat-taxonomy-and-eah #95

Merged
merged 10 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

## v1.13.0

### Date: 17-Nov-2023
### Date: 18-Dec-2023

- Taxonomy Query Support
- Updated Latest version of Utils SDK to 1.2.6
- Snyk Issues fixed
- Updated dependencies
Expand Down
10 changes: 9 additions & 1 deletion src/main/java/com/contentstack/sdk/APIService.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.HeaderMap;
import retrofit2.http.Query;
import retrofit2.http.Url;

import java.util.LinkedHashMap;
import java.util.Map;

/**
* @author Shailesh Mishra
Expand All @@ -15,5 +17,11 @@
*/
public interface APIService {
@GET
Call<ResponseBody> getRequest(@Url String url, @HeaderMap LinkedHashMap<String, Object> headers);
Call<ResponseBody> getRequest(
@Url String url, @HeaderMap LinkedHashMap<String, Object> headers);

@GET("v3/taxonomies/entries")
Call<ResponseBody> getTaxonomy(
@HeaderMap Map<String, Object> headers,
@Query("query") String query);
}
1 change: 0 additions & 1 deletion src/main/java/com/contentstack/sdk/CSHttpConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,6 @@ void handleJSONObject(JSONArray arrayEntry, JSONObject jsonObj, int idx) {
}

void setError(String errResp) {
logger.info(errResp);
responseJSON = new JSONObject(errResp); // Parse error string to JSONObject
responseJSON.put(ERROR_MESSAGE, responseJSON.optString(ERROR_MESSAGE));
responseJSON.put(ERROR_CODE, responseJSON.optString(ERROR_CODE));
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/contentstack/sdk/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ public enum ContentstackRegion {


/**
* The configuration for the contentstack that contains support for Early Access Feature
* To initialize the SDK with the latest features offered in the early access phase,
* include the early access parameter as shown in the following code:
*
* @param earlyAccessFeatures The list of Early Access Features
* {@code
Expand Down
Loading
Loading