diff --git a/src/main/java/com/contentstack/cms/stack/Entry.java b/src/main/java/com/contentstack/cms/stack/Entry.java index a630fac2..eb9d5034 100644 --- a/src/main/java/com/contentstack/cms/stack/Entry.java +++ b/src/main/java/com/contentstack/cms/stack/Entry.java @@ -104,6 +104,7 @@ public Entry addHeaders(@NotNull HashMap headers) { * Set header for the request * * @param key Removes query param using key of request + * @return instance of {@link Entry} */ public Entry removeParam(@NotNull String key) { this.params.remove(key); diff --git a/src/main/java/com/contentstack/cms/stack/Stack.java b/src/main/java/com/contentstack/cms/stack/Stack.java index 2bd21fd4..2f200aba 100644 --- a/src/main/java/com/contentstack/cms/stack/Stack.java +++ b/src/main/java/com/contentstack/cms/stack/Stack.java @@ -845,7 +845,7 @@ public Taxonomy taxonomy() { * * @param taxonomyUid the taxonomy uid * @return instance of Taxonomy - *

+ *
*
      * {@code
      * Stack stack = new Contentstack.Builder().setAuthtoken("authtoken").build().stack();
diff --git a/src/main/java/com/contentstack/cms/stack/Terms.java b/src/main/java/com/contentstack/cms/stack/Terms.java
index 9ab07985..e9e2a154 100644
--- a/src/main/java/com/contentstack/cms/stack/Terms.java
+++ b/src/main/java/com/contentstack/cms/stack/Terms.java
@@ -116,7 +116,7 @@ public Terms addHeaders(@NotNull HashMap headers) {
      * Create Terms call.
      *
      * @param body The JSONObject request body
-     * @return instance of Call 

Example
     {@code
+     * @return instance of Call 
Example
     {@code
      *     Stack stack = new Contentstack.Builder().build().stack(headers);
      *     JSONObject body = new JSONObject();
      *     Term term = stack.taxonomy("taxonomyId").terms().create(body);
@@ -161,7 +161,7 @@ public Call create(@NotNull JSONObject body) {
      * limit - Limit the result to number of documents/nodes
      * 
      * 
-     * 

+ *
* Example *
      *     {@code
@@ -181,7 +181,7 @@ public Call find() {
      * Fetch single term based on term uid.
      *
      * @param termUid The term for which we need the details
-     * @return instance of call 

Supported Query Parameters: to use query parameters use #addParams("key", "value");

  • include_children_count - Include count of number of children under each term
  • include_referenced_entries_count - Include count of the entries where this term is referred

Example
     {@code
+     * @return instance of call 
Supported Query Parameters: to use query parameters use #addParams("key", "value");
  • include_children_count - Include count of number of children under each term
  • include_referenced_entries_count - Include count of the entries where this term is referred

Example
     {@code
      *     Stack stack = new Contentstack.Builder().build().stack(headers);
      *     Term term = stack.taxonomy("taxonomyId").terms().find();
      *     } 
@@ -198,7 +198,7 @@ public Call fetch(@NotNull String termUid) { * @return The details of the term descendants

URL/Query parameters

  • depth - Include the terms upto the depth specified if set to a number greater than 0, include all the terms if set to 0, default depth will be set to 1
  • include_children_count - Include count of number of children under each term
  • include_referenced_entries_count - Include count of the entries where atleast 1 term of this taxonomy is referred
  • include_count - Include count of the documents/nodes that matched the query
  • skip - Skip the number of documents/nodes
  • limit - Limit the result to number of documents/nodes

Example

 {@code
      *      Stack stack = new Contentstack.Builder().build().stack(headers);
      *      Term term = stack.taxonomy("taxonomyId").terms().descendants("termId").;
-     *     }     

+ * }


*/ public Call descendants(@NotNull String termUid) { return this.taxonomyService.descendantsTerm(this.headers, this.taxonomyId, termUid, this.params); @@ -250,7 +250,7 @@ public Call update(@NotNull String termUid, @NotNull JSONObject bo * "order": 2 * } * } - *

+ *
* //Under an existing Term on a different level: * { * "term": { @@ -258,7 +258,7 @@ public Call update(@NotNull String termUid, @NotNull JSONObject bo * "order": 5 * } * } - *

+ *
* //Under an existing Term on the same level(Reorder Term): * { * "term": {