Skip to content

Commit bcba014

Browse files
committed
feat: add generated Java SDK code for API v1.43.0
- Generated from OpenAPI specification using openapi-generator - Includes all API clients, models, and authentication - Ready for Maven Central publishing - Auto-generated documentation in README
1 parent 7f46d82 commit bcba014

293 files changed

Lines changed: 87889 additions & 89 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/maven.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
#
4+
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech)
5+
6+
name: Java CI with Maven
7+
8+
on:
9+
push:
10+
branches: [ main, master ]
11+
pull_request:
12+
branches: [ main, master ]
13+
14+
jobs:
15+
build:
16+
name: Build Linkbreakers API
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
java: [ 17, 21 ]
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up JDK
24+
uses: actions/setup-java@v4
25+
with:
26+
java-version: ${{ matrix.java }}
27+
distribution: 'temurin'
28+
cache: maven
29+
- name: Build with Maven
30+
run: mvn -B package --no-transfer-progress --file pom.xml

.gitignore

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,21 @@
1-
# Compiled class files
21
*.class
32

4-
# Log files
5-
*.log
3+
# Mobile Tools for Java (J2ME)
4+
.mtj.tmp/
65

7-
# Maven
8-
target/
9-
pom.xml.tag
10-
pom.xml.releaseBackup
11-
pom.xml.versionsBackup
12-
pom.xml.next
13-
release.properties
14-
dependency-reduced-pom.xml
15-
buildNumber.properties
16-
.mvn/timing.properties
17-
.mvn/wrapper/maven-wrapper.jar
6+
# Package Files #
7+
*.jar
8+
*.war
9+
*.ear
1810

19-
# Gradle
20-
.gradle
21-
build/
22-
!gradle/wrapper/gradle-wrapper.jar
23-
!**/src/main/**/build/
24-
!**/src/test/**/build/
11+
# exclude jar for gradle wrapper
12+
!gradle/wrapper/*.jar
2513

26-
# IDE
27-
.idea/
28-
*.iws
29-
*.iml
30-
*.ipr
31-
.vscode/
32-
*.swp
33-
*.swo
34-
*~
14+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
15+
hs_err_pid*
3516

36-
# OS
37-
.DS_Store
38-
Thumbs.db
17+
# build files
18+
**/target
19+
target
20+
.gradle
21+
build

README.md

Lines changed: 456 additions & 57 deletions
Large diffs are not rendered by default.

src/main/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<manifest package="org.openapitools.client" xmlns:android="http://schemas.android.com/apk/res/android">
2+
<application />
3+
</manifest>
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Linkbreakers API
3+
* This is a documentation of all the APIs of Linkbreakers
4+
*
5+
* The version of the OpenAPI document: 1.43.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package org.openapitools.client;
15+
16+
import java.io.IOException;
17+
18+
import java.util.Map;
19+
import java.util.List;
20+
21+
/**
22+
* Callback for asynchronous API call.
23+
*
24+
* @param <T> The return type
25+
*/
26+
public interface ApiCallback<T> {
27+
/**
28+
* This is called when the API call fails.
29+
*
30+
* @param e The exception causing the failure
31+
* @param statusCode Status code of the response if available, otherwise it would be 0
32+
* @param responseHeaders Headers of the response if available, otherwise it would be null
33+
*/
34+
void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders);
35+
36+
/**
37+
* This is called when the API call succeeded.
38+
*
39+
* @param result The result deserialized from response
40+
* @param statusCode Status code of the response
41+
* @param responseHeaders Headers of the response
42+
*/
43+
void onSuccess(T result, int statusCode, Map<String, List<String>> responseHeaders);
44+
45+
/**
46+
* This is called when the API upload processing.
47+
*
48+
* @param bytesWritten bytes Written
49+
* @param contentLength content length of request body
50+
* @param done write end
51+
*/
52+
void onUploadProgress(long bytesWritten, long contentLength, boolean done);
53+
54+
/**
55+
* This is called when the API download processing.
56+
*
57+
* @param bytesRead bytes Read
58+
* @param contentLength content length of the response
59+
* @param done Read end
60+
*/
61+
void onDownloadProgress(long bytesRead, long contentLength, boolean done);
62+
}

0 commit comments

Comments
 (0)