Skip to content
Draft
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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
### Version: 3.2.0
#### Date: Jul-23-2026

##### Feat:
- Taxonomy CDA (Content Delivery API) support
- Added `stack.Taxonomy()` — returns a `TaxonomyQuery` to list all published taxonomies (supports `Limit`, `Skip`, `IncludeCount`).
- Added `stack.Taxonomy(uid)` — returns a `TaxonomyCDA` instance for fetching a specific taxonomy, listing its terms, and traversing term hierarchy (ancestors, descendants, locales).
- New models: `TaxonomyCDA`, `TaxonomyQuery`, `TaxonomyTerm`, `TaxonomyTermQuery`.

---

### Version: 3.1.0
#### Date: Jul-20-2026

Expand Down
46 changes: 38 additions & 8 deletions Contentstack.Core.Tests/Helpers/TestDataHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,50 @@ static TestDataHelper()

#endregion

#region Taxonomy
#region Taxonomy (Entry Query Operators — existing)

/// <summary>
/// Gets the taxonomy term for USA state (e.g., "california")
/// Gets the taxonomy term for USA state (e.g., "california").
/// Used by entry-level taxonomy query operator tests (Taxonomies()).
/// </summary>
public static string TaxUsaState =>
public static string TaxUsaState =>
GetRequiredConfig("TAX_USA_STATE");

/// <summary>
/// Gets the taxonomy term for India state (e.g., "maharashtra")
/// Gets the taxonomy term for India state (e.g., "maharashtra").
/// Used by entry-level taxonomy query operator tests (Taxonomies()).
/// </summary>
public static string TaxIndiaState =>
public static string TaxIndiaState =>
GetRequiredConfig("TAX_INDIA_STATE");


#endregion

#region Taxonomy CDA (new Publishing & Delivery endpoints)

/// <summary>
/// Gets the UID of a taxonomy that has been published to the test environment.
/// Used by Taxonomy CDA endpoint tests (stack.Taxonomy(uid)).
/// Configure in app.config: <c>&lt;add key="TAXONOMY_CDA_UID" value="your_taxonomy_uid" /&gt;</c>
/// </summary>
public static string TaxonomyCdaUid =>
GetRequiredConfig("TAXONOMY_CDA_UID");

/// <summary>
/// Gets the UID of a term within <see cref="TaxonomyCdaUid"/> that has been published
/// to the test environment. Used for term-level CDA endpoint tests.
/// Configure in app.config: <c>&lt;add key="TAXONOMY_CDA_TERM_UID" value="your_term_uid" /&gt;</c>
/// </summary>
public static string TaxonomyCdaTermUid =>
GetRequiredConfig("TAXONOMY_CDA_TERM_UID");

/// <summary>
/// Gets the locale used for Taxonomy CDA locale-specific tests (e.g., "fr-fr").
/// The taxonomy must be published in this locale on the test environment.
/// Configure in app.config: <c>&lt;add key="TAXONOMY_CDA_LOCALE" value="fr-fr" /&gt;</c>
/// </summary>
public static string TaxonomyCdaLocale =>
GetRequiredConfig("TAXONOMY_CDA_LOCALE");

#endregion

#region Live Preview
Expand Down
Loading
Loading