Skip to content

Commit

Permalink
feat: Add support for taxonomy API (#192)
Browse files Browse the repository at this point in the history
* Add support for taxonomy API

* [maven-release-plugin] prepare release cma-sdk-3.4.17

* [maven-release-plugin] prepare for next development iteration

* Update docs

* typo
  • Loading branch information
rafalniski authored Jan 23, 2025
1 parent 274ecee commit 6c34471
Show file tree
Hide file tree
Showing 18 changed files with 1,563 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## Version [3.4.17] - [2025-01-23]
- Changed: added support for Taxonomy API

## Version [3.4.16] - [2024-12-16]
- Changed: added fetchAllSnapshotsWithQuery method with query support

Expand Down Expand Up @@ -217,6 +220,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
Initial release.

[unreleased]: https://github.com/contentful/contentful-management.java/compare/cma-sdk-3.3.3...HEAD
[3.4.17]: https://github.com/contentful/contentful-management.java/compare/v3.4.16...v3.4.17
[3.4.16]: https://github.com/contentful/contentful-management.java/compare/v3.4.15...v3.4.16
[3.4.15]: https://github.com/contentful/contentful-management.java/compare/v3.4.14...v3.4.15
[3.4.14]: https://github.com/contentful/contentful-management.java/compare/v3.4.13...v3.4.14
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Core Features
* [Scheduled actions](https://www.contentful.com/developers/docs/references/content-management-api/#/reference/scheduled-actions)
* [SpaceMemberships](https://www.contentful.com/developers/docs/references/content-management-api/#/reference/space-memberships)
* [Spaces](https://www.contentful.com/developers/docs/references/content-management-api/#/reference/spaces)
* [Taxonomy](https://www.contentful.com/developers/docs/references/content-management-api/#/reference/taxonomy)
* [UiExtensions](https://www.contentful.com/developers/docs/references/content-management-api/#/reference/ui-extensions)
* [Uploads](https://www.contentful.com/developers/docs/references/content-management-api/#/reference/uploads)
* [Users](https://www.contentful.com/developers/docs/references/content-management-api/#/reference/users)
Expand All @@ -90,13 +91,13 @@ Install the Contentful dependency:
<dependency>
<groupId>com.contentful.java</groupId>
<artifactId>cma-sdk</artifactId>
<version>3.4.16</version>
<version>3.4.17</version>
</dependency>
```

* _Gradle_
```groovy
compile 'com.contentful.java:cma-sdk:3.4.16'
compile 'com.contentful.java:cma-sdk:3.4.17'
```

This SDK requires Java 8 (or higher version).
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>com.contentful.java</groupId>
<artifactId>cma-sdk</artifactId>
<version>3.4.17-SNAPSHOT</version>
<version>3.4.18-SNAPSHOT</version>
<packaging>jar</packaging>

<name>cma-sdk</name>
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/contentful/java/cma/CMAClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ public class CMAClient {
private final ModuleWebhooks moduleWebhooks;
private final ModuleScheduledActions moduleScheduledActions;

private final ModuleTaxonomy moduleTaxonomy;

// Executors
Executor callbackExecutor;

Expand Down Expand Up @@ -178,6 +180,8 @@ private CMAClient(Builder cmaBuilder) {
configured);
this.moduleScheduledActions = new ModuleScheduledActions(retrofit, callbackExecutor,
spaceId, environmentId, configured);
this.moduleTaxonomy = new ModuleTaxonomy(retrofit,
callbackExecutor, spaceId, environmentId, configured);

}

Expand Down Expand Up @@ -375,6 +379,10 @@ public ModuleScheduledActions scheduledActions() {
return moduleScheduledActions;
}

public ModuleTaxonomy taxonomy() {
return moduleTaxonomy;
}


/**
* Builder.
Expand Down
Loading

0 comments on commit 6c34471

Please sign in to comment.