All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| downloadIdGet | GET /download/{id} | |
| downloadIdGetWithHttpInfo | GET /download/{id} | |
| fooDtParamGet | GET /foo/{dtParam} | |
| fooDtParamGetWithHttpInfo | GET /foo/{dtParam} | |
| uploadPost | POST /upload | |
| uploadPostWithHttpInfo | POST /upload |
File downloadIdGet(id)
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
String id = "id_example"; // String |
try {
File result = apiInstance.downloadIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#downloadIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
No authorization required
- Content-Type: Not defined
- Accept: application/octet-stream
| Status code | Description | Response headers |
|---|---|---|
| 200 | ok | - |
ApiResponse downloadIdGetWithHttpInfo(id)
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
String id = "id_example"; // String |
try {
ApiResponse<File> response = apiInstance.downloadIdGetWithHttpInfo(id);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#downloadIdGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
ApiResponse<File>
No authorization required
- Content-Type: Not defined
- Accept: application/octet-stream
| Status code | Description | Response headers |
|---|---|---|
| 200 | ok | - |
Foo fooDtParamGet(dtParam, dtQuery, dtCookie)
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
java.time.Instant dtParam = new java.time.Instant(); // java.time.Instant |
java.time.Instant dtQuery = new java.time.Instant(); // java.time.Instant |
java.time.Instant dtCookie = new java.time.Instant(); // java.time.Instant |
try {
Foo result = apiInstance.fooDtParamGet(dtParam, dtQuery, dtCookie);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#fooDtParamGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| dtParam | java.time.Instant | [optional] | |
| dtQuery | java.time.Instant | [optional] | |
| dtCookie | java.time.Instant | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 0 | response | - |
ApiResponse fooDtParamGetWithHttpInfo(dtParam, dtQuery, dtCookie)
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
java.time.Instant dtParam = new java.time.Instant(); // java.time.Instant |
java.time.Instant dtQuery = new java.time.Instant(); // java.time.Instant |
java.time.Instant dtCookie = new java.time.Instant(); // java.time.Instant |
try {
ApiResponse<Foo> response = apiInstance.fooDtParamGetWithHttpInfo(dtParam, dtQuery, dtCookie);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#fooDtParamGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| dtParam | java.time.Instant | [optional] | |
| dtQuery | java.time.Instant | [optional] | |
| dtCookie | java.time.Instant | [optional] |
ApiResponse<Foo>
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 0 | response | - |
UploadPostDefaultResponse uploadPost(_file, metadata)
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
File _file = new File("/path/to/file"); // File |
File metadata = new File("/path/to/file"); // File |
try {
UploadPostDefaultResponse result = apiInstance.uploadPost(_file, metadata);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#uploadPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| _file | File | ||
| metadata | File | [optional] |
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 0 | ok | - |
ApiResponse uploadPostWithHttpInfo(_file, metadata)
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.ApiResponse;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.DefaultApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
DefaultApi apiInstance = new DefaultApi(defaultClient);
File _file = new File("/path/to/file"); // File |
File metadata = new File("/path/to/file"); // File |
try {
ApiResponse<UploadPostDefaultResponse> response = apiInstance.uploadPostWithHttpInfo(_file, metadata);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#uploadPost");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| _file | File | ||
| metadata | File | [optional] |
ApiResponse<UploadPostDefaultResponse>
No authorization required
- Content-Type: multipart/form-data
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 0 | ok | - |