Skip to content

Conversation

PavloMyrotiuk
Copy link
Contributor

Add mt-router api

JIRA Ticket

Copy link

@Copilot 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

This PR introduces a new smartling-mt-router-api module that provides a v2 MT Router API client, its DTOs, factory, and accompanying tests.

  • Adds MtRouterApi interface and MtRouterApiFactory for calling the generateAccountTranslations endpoint.
  • Defines request/response DTOs (TranslationPTO, ErrorPTO, SourceStringCommandPTO, GenerateAccountTranslationCommandPTO).
  • Includes sample JSON responses and unit tests covering success and error scenarios.

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
smartling-mt-router-api/src/test/java/com/smartling/api/mtrouter/v2/SampleApiResponses.java Sample JSON templates for success and error API responses
smartling-mt-router-api/src/test/java/com/smartling/api/mtrouter/v2/MtRouterApiTest.java Unit tests for generateAccountTranslations (success & error)
smartling-mt-router-api/src/main/resources/com/smartling/api/mtrouter/v2/sdk-project.properties Defines artifactId and version for the new module
smartling-mt-router-api/src/main/java/com/smartling/api/mtrouter/v2/pto/TranslationPTO.java DTO for translation response
smartling-mt-router-api/src/main/java/com/smartling/api/mtrouter/v2/pto/ErrorPTO.java DTO for error details
smartling-mt-router-api/src/main/java/com/smartling/api/mtrouter/v2/pto/SourceStringCommandPTO.java DTO for individual source strings
smartling-mt-router-api/src/main/java/com/smartling/api/mtrouter/v2/pto/GenerateAccountTranslationCommandPTO.java DTO for bulk translation request
smartling-mt-router-api/src/main/java/com/smartling/api/mtrouter/v2/MtRouterApiFactory.java Factory for building the MT Router API client
smartling-mt-router-api/src/main/java/com/smartling/api/mtrouter/v2/MtRouterApi.java JAX-RS interface defining the /accounts/{accountUid}/smartling-mt endpoint
smartling-mt-router-api/src/main/pom.xml Maven POM for smartling-mt-router-api module
pom.xml Adds smartling-mt-router-api to the parent project modules

PavloMyrotiuk and others added 2 commits May 15, 2025 14:04
…er/v2/SampleApiResponses.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…er/v2/pto/SourceStringCommandPTO.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@PavloMyrotiuk PavloMyrotiuk merged commit 4d58df7 into master May 16, 2025
2 checks passed
@PavloMyrotiuk PavloMyrotiuk deleted the JOBS-8225-mt-router-public-sdk branch May 16, 2025 08:00
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.

5 participants