Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI: Regenerates API Bindings #26

Merged
merged 3 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/javaapp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: JUnit Tests

env:
API_HOST: ${{ vars.API_HOST }}
API_KEY: ${{ secrets.API_KEY }}

on:
push:
branches: [ master, openapi-bindings ]
pull_request:
branches: [ master, openapi-bindings ]

jobs:
build:

runs-on: gcp-runner

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 1.11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'

- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.8.1

- name: Build
run: mvn --batch-mode package
12 changes: 12 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ docs/DocumentsApi.md
docs/Error.md
docs/FileDeleteResponse.md
docs/FilesApi.md
docs/GetLiltCreateContentResponse.md
docs/InlineResponse200.md
docs/Job.md
docs/JobCreateParameters.md
Expand All @@ -25,6 +26,8 @@ docs/LanguagePair.md
docs/LanguagesApi.md
docs/LanguagesResponse.md
docs/LiltCreateContent.md
docs/LiltCreateContentPreferences.md
docs/LiltCreateContentTemplateParams.md
docs/MemoriesApi.md
docs/Memory.md
docs/MemoryCreateParameters.md
Expand All @@ -48,6 +51,9 @@ docs/TranslationInfo.md
docs/TranslationList.md
docs/TranslationMemoryEntry.md
docs/WorkflowStageAssignment.md
docs/WorkflowStageTemplate.md
docs/WorkflowTemplate.md
docs/WorkflowsApi.md
pom.xml
src/main/AndroidManifest.xml
src/main/java/com/lilt/client/ApiCallback.java
Expand All @@ -71,6 +77,7 @@ src/main/java/com/lilt/client/api/LanguagesApi.java
src/main/java/com/lilt/client/api/MemoriesApi.java
src/main/java/com/lilt/client/api/ProjectsApi.java
src/main/java/com/lilt/client/api/TranslateApi.java
src/main/java/com/lilt/client/api/WorkflowsApi.java
src/main/java/com/lilt/client/auth/ApiKeyAuth.java
src/main/java/com/lilt/client/auth/Authentication.java
src/main/java/com/lilt/client/auth/HttpBasicAuth.java
Expand All @@ -83,6 +90,7 @@ src/main/java/com/lilt/client/model/DocumentWithoutSegments.java
src/main/java/com/lilt/client/model/DocumentWithoutSegmentsStatus.java
src/main/java/com/lilt/client/model/Error.java
src/main/java/com/lilt/client/model/FileDeleteResponse.java
src/main/java/com/lilt/client/model/GetLiltCreateContentResponse.java
src/main/java/com/lilt/client/model/InlineResponse200.java
src/main/java/com/lilt/client/model/Job.java
src/main/java/com/lilt/client/model/JobCreateParameters.java
Expand All @@ -94,6 +102,8 @@ src/main/java/com/lilt/client/model/JobUpdateParameters.java
src/main/java/com/lilt/client/model/LanguagePair.java
src/main/java/com/lilt/client/model/LanguagesResponse.java
src/main/java/com/lilt/client/model/LiltCreateContent.java
src/main/java/com/lilt/client/model/LiltCreateContentPreferences.java
src/main/java/com/lilt/client/model/LiltCreateContentTemplateParams.java
src/main/java/com/lilt/client/model/Memory.java
src/main/java/com/lilt/client/model/MemoryCreateParameters.java
src/main/java/com/lilt/client/model/MemoryDeleteResponse.java
Expand All @@ -114,3 +124,5 @@ src/main/java/com/lilt/client/model/TranslationInfo.java
src/main/java/com/lilt/client/model/TranslationList.java
src/main/java/com/lilt/client/model/TranslationMemoryEntry.java
src/main/java/com/lilt/client/model/WorkflowStageAssignment.java
src/main/java/com/lilt/client/model/WorkflowStageTemplate.java
src/main/java/com/lilt/client/model/WorkflowTemplate.java
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@

Lilt REST API
- API version: v3.0
- Build date: 2024-07-22T00:19:36.591Z[GMT]
- Build date: 2024-10-14T17:01:14.551Z[GMT]

Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals
The Lilt REST API enables programmatic access to the full-range of Lilt backend services including:
* Training of and translating with interactive, adaptive machine translation
* Large-scale translation memory
* The Lexicon (a large-scale termbase)
* Programmatic control of the Lilt CAT environment
* Translation memory synchronization

Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests.
Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests.
The base url for this REST API is `https://api.lilt.com/`.

## Authentication

Expand All @@ -26,7 +28,6 @@ For development, you may also pass the REST API key via the `key` query paramete
Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request.


For more information, please visit [https://developers.lilt.com/](https://developers.lilt.com/)

*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*

Expand Down Expand Up @@ -61,7 +62,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>openapi-java-client</artifactId>
<version>2.2.0</version>
<version>3.0.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -71,7 +72,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.openapitools:openapi-java-client:2.2.0"
compile "org.openapitools:openapi-java-client:3.0.0"
```

### Others
Expand All @@ -84,7 +85,7 @@ mvn clean package

Then manually install the following JARs:

* `target/openapi-java-client-2.2.0.jar`
* `target/openapi-java-client-3.0.0.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down Expand Up @@ -186,6 +187,7 @@ Class | Method | HTTP request | Description
*TranslateApi* | [**downloadFile**](docs/TranslateApi.md#downloadFile) | **GET** /v2/translate/files | Download translated file
*TranslateApi* | [**monitorFileTranslation**](docs/TranslateApi.md#monitorFileTranslation) | **GET** /v2/translate/file | Monitor file translation
*TranslateApi* | [**translateSegmentPost**](docs/TranslateApi.md#translateSegmentPost) | **POST** /v2/translate | Translate a segment
*WorkflowsApi* | [**getWorkflowTemplates**](docs/WorkflowsApi.md#getWorkflowTemplates) | **GET** /v2/workflows/templates | Retrieve workflow templates


## Documentation for Models
Expand All @@ -198,6 +200,7 @@ Class | Method | HTTP request | Description
- [DocumentWithoutSegmentsStatus](docs/DocumentWithoutSegmentsStatus.md)
- [Error](docs/Error.md)
- [FileDeleteResponse](docs/FileDeleteResponse.md)
- [GetLiltCreateContentResponse](docs/GetLiltCreateContentResponse.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [Job](docs/Job.md)
- [JobCreateParameters](docs/JobCreateParameters.md)
Expand All @@ -209,6 +212,8 @@ Class | Method | HTTP request | Description
- [LanguagePair](docs/LanguagePair.md)
- [LanguagesResponse](docs/LanguagesResponse.md)
- [LiltCreateContent](docs/LiltCreateContent.md)
- [LiltCreateContentPreferences](docs/LiltCreateContentPreferences.md)
- [LiltCreateContentTemplateParams](docs/LiltCreateContentTemplateParams.md)
- [Memory](docs/Memory.md)
- [MemoryCreateParameters](docs/MemoryCreateParameters.md)
- [MemoryDeleteResponse](docs/MemoryDeleteResponse.md)
Expand All @@ -229,6 +234,8 @@ Class | Method | HTTP request | Description
- [TranslationList](docs/TranslationList.md)
- [TranslationMemoryEntry](docs/TranslationMemoryEntry.md)
- [WorkflowStageAssignment](docs/WorkflowStageAssignment.md)
- [WorkflowStageTemplate](docs/WorkflowStageTemplate.md)
- [WorkflowTemplate](docs/WorkflowTemplate.md)


## Documentation for Authorization
Expand All @@ -251,5 +258,5 @@ It's recommended to create an instance of `ApiClient` per thread in a multithrea

## Author

[email protected]


Loading
Loading