Skip to content

feat: add Style Guides API#369

Open
bulat3103 wants to merge 4 commits intocrowdin:masterfrom
bulat3103:feature/add_styles_guides_api
Open

feat: add Style Guides API#369
bulat3103 wants to merge 4 commits intocrowdin:masterfrom
bulat3103:feature/add_styles_guides_api

Conversation

@bulat3103
Copy link

No description provided.

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

Codecov Report

❌ Patch coverage is 83.33333% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.28%. Comparing base (dcdc704) to head (8a32b98).

Files with missing lines Patch % Lines
.../com/crowdin/client/styleguide/StyleGuidesApi.java 79.42% 6 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #369      +/-   ##
============================================
- Coverage     93.40%   93.28%   -0.12%     
- Complexity      921      930       +9     
============================================
  Files           203      205       +2     
  Lines          3317     3359      +42     
  Branches         70       71       +1     
============================================
+ Hits           3098     3133      +35     
- Misses          183      189       +6     
- Partials         36       37       +1     

☔ 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

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
Author

Fixed all copilot issues

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.

3 participants