Skip to content

feat: add Style Guides API#369

Merged
andrii-bodnar merged 4 commits intocrowdin:masterfrom
bulat3103:feature/add_styles_guides_api
Mar 25, 2026
Merged

feat: add Style Guides API#369
andrii-bodnar merged 4 commits intocrowdin:masterfrom
bulat3103:feature/add_styles_guides_api

Conversation

@bulat3103
Copy link
Copy Markdown
Contributor

No description provided.

@bulat3103 bulat3103 changed the title Created Style Guides API feat: add Style Guides API Mar 17, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.49%. Comparing base (dcdc704) to head (5784da7).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #369      +/-   ##
============================================
+ Coverage     93.40%   93.49%   +0.09%     
- Complexity      921      932      +11     
============================================
  Files           203      205       +2     
  Lines          3317     3359      +42     
  Branches         70       71       +1     
============================================
+ Hits           3098     3140      +42     
  Misses          183      183              
  Partials         36       36              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Style Guides API module to the Java client, including models, API methods, and mock-based tests/resources.

Changes:

  • Introduces StyleGuidesApi with CRUD + list operations for /style-guides.
  • Adds StyleGuide domain model plus request/response wrapper models and list query params.
  • Wires the new API into the root Client and adds tests + JSON fixtures.

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/main/java/com/crowdin/client/styleguide/StyleGuidesApi.java Implements Style Guides endpoints (list/add/get/edit/delete).
src/main/java/com/crowdin/client/styleguide/model/StyleGuide.java Adds Style Guide entity model.
src/main/java/com/crowdin/client/styleguide/model/AddStyleGuideRequest.java Adds request model for creating style guides.
src/main/java/com/crowdin/client/styleguide/model/ListStyleGuidesParams.java Adds list query params (pagination + order/user filters).
src/main/java/com/crowdin/client/styleguide/model/StyleGuideResponseObject.java Adds response wrapper for single style guide.
src/main/java/com/crowdin/client/styleguide/model/StyleGuideResponseList.java Adds response wrapper + conversion for list responses.
src/main/java/com/crowdin/client/Client.java Exposes StyleGuidesApi from the root client.
src/test/java/com/crowdin/client/styleguide/StyleGuidesApiTest.java Adds mock-based unit tests for the new API.
src/test/resources/api/styleguide/styleGuide.json Adds mocked single-item API response fixture.
src/test/resources/api/styleguide/listStyleGuides.json Adds mocked list API response fixture.
src/test/resources/api/styleguide/addStyleGuideRequest.json Adds mocked create request fixture.
src/test/resources/api/styleguide/editStyleGuide.json Adds mocked patch request fixture.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@bulat3103
Copy link
Copy Markdown
Contributor Author

Fixed all copilot issues

@andrii-bodnar andrii-bodnar linked an issue Mar 25, 2026 that may be closed by this pull request
@andrii-bodnar andrii-bodnar merged commit 9105e6e into crowdin:master Mar 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Style Guides API

4 participants