openapi for sibyl2 server
Automatically generated by the OpenAPI Generator
java -jar ~/Downloads/openapi-generator-cli-6.2.1.jar generate -i pkg/server/docs/swagger.yaml -g java -o ~/github_workspace/sibyl-java-client -c ~/github_workspace/sibyl-java-client/config.json
https://jitpack.io/#opensibyl/sibyl-java-client
Please follow the installation instruction and execute the following Java code:
// Import classes:
import com.github.opensibyl.client.ApiClient;
import com.github.opensibyl.client.ApiException;
import com.github.opensibyl.client.Configuration;
import com.github.opensibyl.client.models.*;
import com.github.opensibyl.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 repo = "repo_example"; // String | repo
String rev = "rev_example"; // String | rev
try {
List<String> result = apiInstance.apiV1FileGet(repo, rev);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#apiV1FileGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | apiV1FileGet | GET /api/v1/file | file query |
| DefaultApi | apiV1FuncGet | GET /api/v1/func | func query |
| DefaultApi | apiV1FuncctxGet | GET /api/v1/funcctx | func ctx query |
| DefaultApi | apiV1MonitorUploadGet | GET /api/v1/monitor/upload | upload status query |
| DefaultApi | apiV1RepoGet | GET /api/v1/repo | repo query |
| DefaultApi | apiV1RevGet | GET /api/v1/rev | rev query |
| DefaultApi | pingGet | GET /ping | ping example |