Skip to content
Snippets Groups Projects
Select Git revision
  • 243949d653025f683543e980cab6bd49149cc751
  • master default protected
  • replication_test
  • dev protected
  • release-1.10 protected
  • 533-integrate-semantic-recommendation-2
  • 556-usage-statistics
  • 553-semantic-recommendation-2
  • 553-semantic-recommendation
  • release-1.9 protected
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • v1.10.5 protected
  • v1.10.4 protected
  • v1.10.3 protected
  • v1.10.2 protected
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
41 results

.java-stubs

Martin Weise's avatar
Martin Weise authored
78264b32
History

swagger-java-client

Database Repository Container Service API

  • API version: 1.1.0-alpha
    • Build date: 2023-02-12T11:48:18.502846+01:00[Europe/Vienna]

Service that manages the containers

Automatically generated by the Swagger Codegen

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project's POM:

<dependency>
  <groupId>io.swagger</groupId>
  <artifactId>swagger-java-client</artifactId>
  <version>1.0.0</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "io.swagger:swagger-java-client:1.0.0"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/swagger-java-client-1.0.0.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:

import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContainerEndpointApi;

import java.io.File;
import java.util.*;

public class ContainerEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContainerEndpointApi apiInstance = new ContainerEndpointApi();
        ContainerCreateRequestDto body = new ContainerCreateRequestDto(); // ContainerCreateRequestDto | 
        try {
            ContainerBriefDto result = apiInstance.create1(body);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContainerEndpointApi#create1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContainerEndpointApi;

import java.io.File;
import java.util.*;

public class ContainerEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContainerEndpointApi apiInstance = new ContainerEndpointApi();
        Long id = 789L; // Long | 
        try {
            Object result = apiInstance.delete1(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContainerEndpointApi#delete1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContainerEndpointApi;

import java.io.File;
import java.util.*;

public class ContainerEndpointApiExample {

    public static void main(String[] args) {
        
        ContainerEndpointApi apiInstance = new ContainerEndpointApi();
        try {
            List<ContainerBriefDto> result = apiInstance.findAll1();
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContainerEndpointApi#findAll1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContainerEndpointApi;

import java.io.File;
import java.util.*;

public class ContainerEndpointApiExample {

    public static void main(String[] args) {
        
        ContainerEndpointApi apiInstance = new ContainerEndpointApi();
        Long id = 789L; // Long | 
        try {
            ContainerDto result = apiInstance.findById1(id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContainerEndpointApi#findById1");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ContainerEndpointApi;

import java.io.File;
import java.util.*;

public class ContainerEndpointApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();


        ContainerEndpointApi apiInstance = new ContainerEndpointApi();
        ContainerChangeDto body = new ContainerChangeDto(); // ContainerChangeDto | 
        Long id = 789L; // Long | 
        try {
            ContainerBriefDto result = apiInstance.modify(body, id);
            System.out.println(result);
        } catch (ApiException e) {
            System.err.println("Exception when calling ContainerEndpointApi#modify");
            e.printStackTrace();
        }
    }
}

Documentation for API Endpoints

All URIs are relative to http://localhost:9091

Class Method HTTP request Description
ContainerEndpointApi create1 POST /api/container Create container
ContainerEndpointApi delete1 DELETE /api/container/{id} Delete some container
ContainerEndpointApi findAll1 GET /api/container Find all containers
ContainerEndpointApi findById1 GET /api/container/{id} Find some container
ContainerEndpointApi modify PUT /api/container/{id} Modify some container
ImageEndpointApi create POST /api/image Create image
ImageEndpointApi delete DELETE /api/image/{id} Delete some image
ImageEndpointApi findAll GET /api/image Find all images
ImageEndpointApi findById GET /api/image/{id} Find some image
ImageEndpointApi update PUT /api/image/{id} Update some image

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

bearerAuth

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

andreas.rauber@tuwien.ac.at