Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR implements support for the "Get Spaces Statistics" API endpoint (/k/v1/spaces/statistics.json) that was added to kintone on August 20, 2024. The implementation adds the ability to retrieve space usage statistics with pagination support.
- Adds
getStatistics()methods toSpaceClientfor retrieving space usage statistics - Implements request/response model classes with offset and limit pagination parameters
- Includes comprehensive unit tests for the new functionality
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
SpaceStatistics.java |
New model class representing space usage statistics with fields for ID, name, counts, privacy settings, and audit information |
GetSpacesStatisticsRequest.java |
New request class supporting optional offset and limit parameters for pagination |
GetSpacesStatisticsResponseBody.java |
New response class containing a list of space statistics |
SpaceClient.java |
Adds two getStatistics() method overloads following the existing pattern of parameterless and parameterized variants |
KintoneApi.java |
Adds GET_SPACES_STATISTICS API endpoint definition |
SpaceClientTest.java |
Adds unit tests for both getStatistics() method variants |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| private final User creator; | ||
|
|
||
| /** The created date time of the Space. */ | ||
| private final String createdAt; |
| private final User modifier; | ||
|
|
||
| /** The updated date time of the Space. */ | ||
| private final String modifiedAt; |
chihiro-adachi
approved these changes
Nov 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
2024年8月20日のkintone APIアップデートで追加された「スペースの使用状況を取得する」API (
/k/v1/spaces/statistics.json) をJava Clientに実装するため。API仕様: https://cybozu.dev/ja/kintone/docs/rest-api/spaces/get-spaces-statistics/
What
SpaceClientにgetStatistics()メソッドを追加GetSpacesStatisticsRequestを追加(offset, limitパラメータをサポート)GetSpacesStatisticsResponseBodyを追加SpaceStatisticsを追加(スペースの使用状況情報を保持)KintoneApiにGET_SPACES_STATISTICS定義を追加主な変更内容
追加ファイル
src/main/java/com/kintone/client/model/space/SpaceStatistics.javasrc/main/java/com/kintone/client/api/space/GetSpacesStatisticsRequest.javasrc/main/java/com/kintone/client/api/space/GetSpacesStatisticsResponseBody.java変更ファイル
src/main/java/com/kintone/client/KintoneApi.java- API定義追加src/main/java/com/kintone/client/SpaceClient.java- getStatistics()メソッド追加src/test/java/com/kintone/client/SpaceClientTest.java- テストケース追加