diff --git a/CHANGELOG.md b/CHANGELOG.md index cf87878..486a9b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm # Changelog for gCube Catalogue (gCat) API +## [v1.2.2-SNAPSHOT] -## [v2.0.0-SNAPSHOT] [r5.0.0] - - +- Added count method for Item collection [#20627] +- Added count method for Organization, Group and Profile collection [#20629] - Switched JSON management to gcube-jackson [#19735] diff --git a/pom.xml b/pom.xml index b00c07f..1c62a16 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ org.gcube.data-catalogue gcat-api - 2.0.0-SNAPSHOT + 1.2.2-SNAPSHOT gCube Catalogue (gCat) API gCube Catalogue (gCat) API is a library containing classes shared across gcat* components diff --git a/src/main/java/org/gcube/gcat/api/GCatConstants.java b/src/main/java/org/gcube/gcat/api/GCatConstants.java index bd4d3e4..78d7824 100644 --- a/src/main/java/org/gcube/gcat/api/GCatConstants.java +++ b/src/main/java/org/gcube/gcat/api/GCatConstants.java @@ -10,7 +10,7 @@ public class GCatConstants { public static final String APPLICATION_JSON_CHARSET_UTF_8 = "application/json;charset=UTF-8"; public static final String LIMIT_PARAMETER = "limit"; public static final String OFFSET_PARAMETER = "offset"; - public static final String COUNT_ONLY_PARAMETER = "countOnly"; + public static final String COUNT_PARAMETER = "count"; public static final String COUNT_KEY = "count"; diff --git a/src/main/java/org/gcube/gcat/api/interfaces/License.java b/src/main/java/org/gcube/gcat/api/interfaces/License.java index cb8631d..39b948a 100644 --- a/src/main/java/org/gcube/gcat/api/interfaces/License.java +++ b/src/main/java/org/gcube/gcat/api/interfaces/License.java @@ -5,7 +5,7 @@ package org.gcube.gcat.api.interfaces; */ public interface License { - String LICENSES = "licenses"; + public static final String LICENSES = "licenses"; public String list(); diff --git a/src/main/java/org/gcube/gcat/api/interfaces/Namespace.java b/src/main/java/org/gcube/gcat/api/interfaces/Namespace.java index 98fd5a6..f6e48c3 100644 --- a/src/main/java/org/gcube/gcat/api/interfaces/Namespace.java +++ b/src/main/java/org/gcube/gcat/api/interfaces/Namespace.java @@ -5,7 +5,7 @@ package org.gcube.gcat.api.interfaces; */ public interface Namespace { - String NAMESPACES = "namespaces"; + public static final String NAMESPACES = "namespaces"; public String list(); diff --git a/src/main/java/org/gcube/gcat/api/interfaces/Resource.java b/src/main/java/org/gcube/gcat/api/interfaces/Resource.java index d32dccf..dbf073b 100644 --- a/src/main/java/org/gcube/gcat/api/interfaces/Resource.java +++ b/src/main/java/org/gcube/gcat/api/interfaces/Resource.java @@ -5,7 +5,7 @@ package org.gcube.gcat.api.interfaces; */ public interface Resource { - String RESOURCES = "resources"; + public static final String RESOURCES = "resources"; public String list(String itemID); diff --git a/src/main/java/org/gcube/gcat/api/interfaces/User.java b/src/main/java/org/gcube/gcat/api/interfaces/User.java index cde96f2..cc2c703 100644 --- a/src/main/java/org/gcube/gcat/api/interfaces/User.java +++ b/src/main/java/org/gcube/gcat/api/interfaces/User.java @@ -5,7 +5,7 @@ package org.gcube.gcat.api.interfaces; */ public interface User extends CRUD { - String USERS = "users"; + public static final String USERS = "users"; public String list();