1.7 KiB

ResourceApi

All URIs are relative to http://localhost

Method HTTP request Description
resourceInResponse GET /resource

resourceInResponse

File resourceInResponse()

Response file abstraction

Example

// 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.ResourceApi;

public class Example {
    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        defaultClient.setBasePath("http://localhost");

        ResourceApi apiInstance = new ResourceApi(defaultClient);
        try {
            File result = apiInstance.resourceInResponse();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ResourceApi#resourceInResponse");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

File

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

HTTP response details

Status code Description Response headers
200 Successful operation -