Skip to content

Repository files navigation

openapi-java-client

agent/service.proto

  • API version: version not set
    • Build date: 2024-11-18T16:39:15.166128119Z[Etc/UTC]
    • Generator version: 7.9.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Automatically generated by the OpenAPI Generator

Requirements

Building the API client library requires:

  1. Java 1.8+
  2. Maven (3.8.3+)/Gradle (7.2+)

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>org.openapitools</groupId>
  <artifactId>openapi-java-client</artifactId>
  <version>version not set</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

  repositories {
    mavenCentral()     // Needed if the 'openapi-java-client' jar has been published to maven central.
    mavenLocal()       // Needed if the 'openapi-java-client' jar has been published to the local maven repo.
  }

  dependencies {
     implementation "org.openapitools:openapi-java-client:version not set"
  }

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/openapi-java-client-version not set.jar
  • target/lib/*.jar

Getting Started

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

// Import classes:
import GeminiCommerce.Agent.ApiClient;
import GeminiCommerce.Agent.ApiException;
import GeminiCommerce.Agent.Configuration;
import GeminiCommerce.Agent.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AgentApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://agent.api.gogemini.io");
    
    // Configure API key authorization: Authorization
    ApiKeyAuth Authorization = (ApiKeyAuth) defaultClient.getAuthentication("Authorization");
    Authorization.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //Authorization.setApiKeyPrefix("Token");

    AgentApi apiInstance = new AgentApi(defaultClient);
    String tenantId = "tenantId_example"; // String | 
    AgentCreateAgentRequest body = new AgentCreateAgentRequest(); // AgentCreateAgentRequest | 
    try {
      AgentAgentEntity result = apiInstance.agentCreateAgent(tenantId, body);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling AgentApi#agentCreateAgent");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Documentation for API Endpoints

All URIs are relative to https://agent.api.gogemini.io

Class Method HTTP request Description
AgentApi agentCreateAgent POST /v1/{tenantId}/agent/create
AgentApi agentGetAgent GET /v1/{tenantId}/agent/{id}
AgentApi agentListAgents POST /v1/{tenantId}/agent/list/page-size/{pageSize}
AgentApi agentUpdateAgent PUT /v1/{tenantId}/agent/{id}

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

Authorization

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

geminiAuthorization

  • Type: API key
  • API key parameter name: X-Gem-Token
  • Location: HTTP header

Recommendation

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

Author

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages