All URIs are relative to https://127.0.0.1:8080/v1
Method | HTTP request | Description |
---|---|---|
appsAppDelete | DELETE /apps/{app} | Delete an app. |
appsAppGet | GET /apps/{app} | Get information for a app. |
appsAppPatch | PATCH /apps/{app} | Updates an app. |
appsGet | GET /apps | Get all app names. |
appsPost | POST /apps | Post new app |
appsAppDelete(app)
Delete an app.
Delete an app.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.AppsApi;
AppsApi apiInstance = new AppsApi();
String app = "app_example"; // String | Name of the app.
try {
apiInstance.appsAppDelete(app);
} catch (ApiException e) {
System.err.println("Exception when calling AppsApi#appsAppDelete");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
app | String | Name of the app. |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
AppWrapper appsAppGet(app)
Get information for a app.
This gives more details about a app, such as statistics.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.AppsApi;
AppsApi apiInstance = new AppsApi();
String app = "app_example"; // String | name of the app.
try {
AppWrapper result = apiInstance.appsAppGet(app);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AppsApi#appsAppGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
app | String | name of the app. |
No authorization required
- Content-Type: application/json
- Accept: application/json
AppWrapper appsAppPatch(app, body)
Updates an app.
You can set app level settings here.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.AppsApi;
AppsApi apiInstance = new AppsApi();
String app = "app_example"; // String | name of the app.
AppWrapper body = new AppWrapper(); // AppWrapper | App to post.
try {
AppWrapper result = apiInstance.appsAppPatch(app, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AppsApi#appsAppPatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
app | String | name of the app. | |
body | AppWrapper | App to post. |
No authorization required
- Content-Type: application/json
- Accept: application/json
AppsWrapper appsGet(cursor, perPage)
Get all app names.
Get a list of all the apps in the system, returned in alphabetical order.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.AppsApi;
AppsApi apiInstance = new AppsApi();
String cursor = "cursor_example"; // String | Cursor from previous response.next_cursor to begin results after, if any.
Integer perPage = 56; // Integer | Number of results to return, defaults to 30. Max of 100.
try {
AppsWrapper result = apiInstance.appsGet(cursor, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AppsApi#appsGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
cursor | String | Cursor from previous response.next_cursor to begin results after, if any. | [optional] |
perPage | Integer | Number of results to return, defaults to 30. Max of 100. | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
AppWrapper appsPost(body)
Post new app
Insert a new app
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.AppsApi;
AppsApi apiInstance = new AppsApi();
AppWrapper body = new AppWrapper(); // AppWrapper | App to post.
try {
AppWrapper result = apiInstance.appsPost(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AppsApi#appsPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
body | AppWrapper | App to post. |
No authorization required
- Content-Type: application/json
- Accept: application/json