Skip to content

Commit df74e82

Browse files
committed
0.4
1 parent 37864ed commit df74e82

35 files changed

Lines changed: 447 additions & 57 deletions

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# openapi-java-client
22

33
FileApi
4-
- API version: 0.3
5-
- Build date: 2025-11-01T10:16:35.801794567+01:00[Europe/Brussels]
4+
- API version: 0.4
5+
- Build date: 2025-11-01T12:23:40.370796367+01:00[Europe/Brussels]
66
- Generator version: 7.17.0
77

88
File Api V1
@@ -41,7 +41,7 @@ Add this dependency to your project's POM:
4141
<dependency>
4242
<groupId>org.openapitools</groupId>
4343
<artifactId>openapi-java-client</artifactId>
44-
<version>0.3</version>
44+
<version>0.4</version>
4545
<scope>compile</scope>
4646
</dependency>
4747
```
@@ -57,7 +57,7 @@ Add this dependency to your project's build file:
5757
}
5858
5959
dependencies {
60-
implementation "org.openapitools:openapi-java-client:0.3"
60+
implementation "org.openapitools:openapi-java-client:0.4"
6161
}
6262
```
6363

@@ -71,7 +71,7 @@ mvn clean package
7171

7272
Then manually install the following JARs:
7373

74-
* `target/openapi-java-client-0.3.jar`
74+
* `target/openapi-java-client-0.4.jar`
7575
* `target/lib/*.jar`
7676

7777
## Getting Started
@@ -125,7 +125,9 @@ Class | Method | HTTP request | Description
125125
*UploadRoutesApi* | [**deleteById**](docs/UploadRoutesApi.md#deleteById) | **DELETE** /api/v1/upload/{id} |
126126
*UploadRoutesApi* | [**download**](docs/UploadRoutesApi.md#download) | **GET** /api/v1/upload/download |
127127
*UploadRoutesApi* | [**findAllUploads**](docs/UploadRoutesApi.md#findAllUploads) | **GET** /api/v1/upload/find-all |
128+
*UploadRoutesApi* | [**makeThumb**](docs/UploadRoutesApi.md#makeThumb) | **POST** /api/v1/upload/{id}/make-thumb |
128129
*UploadRoutesApi* | [**metadata**](docs/UploadRoutesApi.md#metadata) | **GET** /api/v1/upload/metadata |
130+
*UploadRoutesApi* | [**ping**](docs/UploadRoutesApi.md#ping) | **GET** /api/v1/upload/ping |
129131
*UploadRoutesApi* | [**upload**](docs/UploadRoutesApi.md#upload) | **POST** /api/v1/upload |
130132

131133

api/openapi.yaml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ info:
44
license:
55
name: ""
66
title: FileApi
7-
version: "0.3"
7+
version: "0.4"
88
servers:
99
- url: /
1010
paths:
@@ -343,6 +343,16 @@ paths:
343343
- upload::routes
344344
x-accepts:
345345
- application/json
346+
/api/v1/upload/ping:
347+
get:
348+
operationId: ping
349+
responses:
350+
"200":
351+
description: Ping
352+
tags:
353+
- upload::routes
354+
x-accepts:
355+
- application/json
346356
/api/v1/upload/{id}:
347357
delete:
348358
operationId: delete_by_id
@@ -361,6 +371,28 @@ paths:
361371
- upload::routes
362372
x-accepts:
363373
- application/json
374+
/api/v1/upload/{id}/make-thumb:
375+
post:
376+
operationId: make_thumb
377+
parameters:
378+
- explode: false
379+
in: path
380+
name: id
381+
required: true
382+
schema:
383+
type: string
384+
style: simple
385+
responses:
386+
"200":
387+
content:
388+
application/json:
389+
schema:
390+
$ref: "#/components/schemas/FileUploadV2"
391+
description: Make thumbnail
392+
tags:
393+
- upload::routes
394+
x-accepts:
395+
- application/json
364396
components:
365397
schemas:
366398
Context:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'org.openapitools'
7-
version = '0.3'
7+
version = '0.4'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "org.openapitools",
44
name := "openapi-java-client",
5-
version := "0.3",
5+
version := "0.4",
66
scalaVersion := "2.11.12",
77
scalacOptions ++= Seq("-feature"),
88
compile / javacOptions ++= Seq("-Xlint:deprecation"),

docs/UploadRoutesApi.md

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ All URIs are relative to *http://localhost*
77
| [**deleteById**](UploadRoutesApi.md#deleteById) | **DELETE** /api/v1/upload/{id} | |
88
| [**download**](UploadRoutesApi.md#download) | **GET** /api/v1/upload/download | |
99
| [**findAllUploads**](UploadRoutesApi.md#findAllUploads) | **GET** /api/v1/upload/find-all | |
10+
| [**makeThumb**](UploadRoutesApi.md#makeThumb) | **POST** /api/v1/upload/{id}/make-thumb | |
1011
| [**metadata**](UploadRoutesApi.md#metadata) | **GET** /api/v1/upload/metadata | |
12+
| [**ping**](UploadRoutesApi.md#ping) | **GET** /api/v1/upload/ping | |
1113
| [**upload**](UploadRoutesApi.md#upload) | **POST** /api/v1/upload | |
1214

1315

@@ -190,6 +192,66 @@ No authorization required
190192
|-------------|-------------|------------------|
191193
| **200** | Find all upload | - |
192194

195+
<a id="makeThumb"></a>
196+
# **makeThumb**
197+
> FileUploadV2 makeThumb(id)
198+
199+
200+
201+
### Example
202+
```java
203+
// Import classes:
204+
import org.openapitools.client.ApiClient;
205+
import org.openapitools.client.ApiException;
206+
import org.openapitools.client.Configuration;
207+
import org.openapitools.client.models.*;
208+
import org.openapitools.client.api.UploadRoutesApi;
209+
210+
public class Example {
211+
public static void main(String[] args) {
212+
ApiClient defaultClient = Configuration.getDefaultApiClient();
213+
defaultClient.setBasePath("http://localhost");
214+
215+
UploadRoutesApi apiInstance = new UploadRoutesApi(defaultClient);
216+
String id = "id_example"; // String |
217+
try {
218+
FileUploadV2 result = apiInstance.makeThumb(id);
219+
System.out.println(result);
220+
} catch (ApiException e) {
221+
System.err.println("Exception when calling UploadRoutesApi#makeThumb");
222+
System.err.println("Status code: " + e.getCode());
223+
System.err.println("Reason: " + e.getResponseBody());
224+
System.err.println("Response headers: " + e.getResponseHeaders());
225+
e.printStackTrace();
226+
}
227+
}
228+
}
229+
```
230+
231+
### Parameters
232+
233+
| Name | Type | Description | Notes |
234+
|------------- | ------------- | ------------- | -------------|
235+
| **id** | **String**| | |
236+
237+
### Return type
238+
239+
[**FileUploadV2**](FileUploadV2.md)
240+
241+
### Authorization
242+
243+
No authorization required
244+
245+
### HTTP request headers
246+
247+
- **Content-Type**: Not defined
248+
- **Accept**: application/json
249+
250+
### HTTP response details
251+
| Status code | Description | Response headers |
252+
|-------------|-------------|------------------|
253+
| **200** | Make thumbnail | - |
254+
193255
<a id="metadata"></a>
194256
# **metadata**
195257
> FileUploadV2 metadata(id)
@@ -250,6 +312,61 @@ No authorization required
250312
|-------------|-------------|------------------|
251313
| **200** | Get upload metadata | - |
252314

315+
<a id="ping"></a>
316+
# **ping**
317+
> ping()
318+
319+
320+
321+
### Example
322+
```java
323+
// Import classes:
324+
import org.openapitools.client.ApiClient;
325+
import org.openapitools.client.ApiException;
326+
import org.openapitools.client.Configuration;
327+
import org.openapitools.client.models.*;
328+
import org.openapitools.client.api.UploadRoutesApi;
329+
330+
public class Example {
331+
public static void main(String[] args) {
332+
ApiClient defaultClient = Configuration.getDefaultApiClient();
333+
defaultClient.setBasePath("http://localhost");
334+
335+
UploadRoutesApi apiInstance = new UploadRoutesApi(defaultClient);
336+
try {
337+
apiInstance.ping();
338+
} catch (ApiException e) {
339+
System.err.println("Exception when calling UploadRoutesApi#ping");
340+
System.err.println("Status code: " + e.getCode());
341+
System.err.println("Reason: " + e.getResponseBody());
342+
System.err.println("Response headers: " + e.getResponseHeaders());
343+
e.printStackTrace();
344+
}
345+
}
346+
}
347+
```
348+
349+
### Parameters
350+
This endpoint does not need any parameter.
351+
352+
### Return type
353+
354+
null (empty response body)
355+
356+
### Authorization
357+
358+
No authorization required
359+
360+
### HTTP request headers
361+
362+
- **Content-Type**: Not defined
363+
- **Accept**: Not defined
364+
365+
### HTTP response details
366+
| Status code | Description | Response headers |
367+
|-------------|-------------|------------------|
368+
| **200** | Ping | - |
369+
253370
<a id="upload"></a>
254371
# **upload**
255372
> FileUploadV2 upload(fileBytes, correlationId, id, isPublic, withoutThumbnail)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>openapi-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>openapi-java-client</name>
8-
<version>0.3</version>
8+
<version>0.4</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

src/main/java/org/openapitools/client/ApiCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* FileApi
33
* File Api V1
44
*
5-
* The version of the OpenAPI document: 0.3
5+
* The version of the OpenAPI document: 0.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/main/java/org/openapitools/client/ApiClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* FileApi
33
* File Api V1
44
*
5-
* The version of the OpenAPI document: 0.3
5+
* The version of the OpenAPI document: 0.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -139,7 +139,7 @@ protected void init() {
139139
json = new JSON();
140140

141141
// Set default User-Agent.
142-
setUserAgent("OpenAPI-Generator/0.3/java");
142+
setUserAgent("OpenAPI-Generator/0.4/java");
143143

144144
authentications = new HashMap<String, Authentication>();
145145
}

src/main/java/org/openapitools/client/ApiException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* FileApi
33
* File Api V1
44
*
5-
* The version of the OpenAPI document: 0.3
5+
* The version of the OpenAPI document: 0.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,7 +22,7 @@
2222
* <p>ApiException class.</p>
2323
*/
2424
@SuppressWarnings("serial")
25-
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-01T10:16:35.801794567+01:00[Europe/Brussels]", comments = "Generator version: 7.17.0")
25+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-11-01T12:23:40.370796367+01:00[Europe/Brussels]", comments = "Generator version: 7.17.0")
2626
public class ApiException extends Exception {
2727
private static final long serialVersionUID = 1L;
2828

src/main/java/org/openapitools/client/ApiResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* FileApi
33
* File Api V1
44
*
5-
* The version of the OpenAPI document: 0.3
5+
* The version of the OpenAPI document: 0.4
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)