All URIs are relative to https://127.0.0.1:8080/v1
Method | HTTP request | Description |
---|---|---|
appsAppRoutesGet | GET /apps/{app}/routes | Get route list by app name. |
appsAppRoutesPost | POST /apps/{app}/routes | Create new Route |
appsAppRoutesRouteDelete | DELETE /apps/{app}/routes/{route} | Deletes the route |
appsAppRoutesRouteGet | GET /apps/{app}/routes/{route} | Gets route by name |
appsAppRoutesRoutePatch | PATCH /apps/{app}/routes/{route} | Update a Route, Fails if the route or app does not exist. Accepts partial updates / skips validation of zero values. |
appsAppRoutesRoutePut | PUT /apps/{app}/routes/{route} | Create a Route if it does not exist. Update if it does. Will also create app if it does not exist. Put does not skip validation of zero values |
RoutesWrapper appsAppRoutesGet(app, image, cursor, perPage)
Get route list by app name.
This will list routes for a particular app, returned in alphabetical order.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.RoutesApi;
RoutesApi apiInstance = new RoutesApi();
String app = "app_example"; // String | Name of app for this set of routes.
String image = "image_example"; // String | Route image to match, exact.
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 {
RoutesWrapper result = apiInstance.appsAppRoutesGet(app, image, cursor, perPage);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RoutesApi#appsAppRoutesGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
app | String | Name of app for this set of routes. | |
image | String | Route image to match, exact. | [optional] |
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
RouteWrapper appsAppRoutesPost(app, body)
Create new Route
Create a new route in an app, if app doesn't exists, it creates the app. Post does not skip validation of zero values.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.RoutesApi;
RoutesApi apiInstance = new RoutesApi();
String app = "app_example"; // String | name of the app.
RouteWrapper body = new RouteWrapper(); // RouteWrapper | One route to post.
try {
RouteWrapper result = apiInstance.appsAppRoutesPost(app, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RoutesApi#appsAppRoutesPost");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
app | String | name of the app. | |
body | RouteWrapper | One route to post. |
No authorization required
- Content-Type: application/json
- Accept: application/json
appsAppRoutesRouteDelete(app, route)
Deletes the route
Deletes the route.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.RoutesApi;
RoutesApi apiInstance = new RoutesApi();
String app = "app_example"; // String | Name of app for this set of routes.
String route = "route_example"; // String | Route name
try {
apiInstance.appsAppRoutesRouteDelete(app, route);
} catch (ApiException e) {
System.err.println("Exception when calling RoutesApi#appsAppRoutesRouteDelete");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
app | String | Name of app for this set of routes. | |
route | String | Route name |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
RouteWrapper appsAppRoutesRouteGet(app, route)
Gets route by name
Gets a route by name.
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.RoutesApi;
RoutesApi apiInstance = new RoutesApi();
String app = "app_example"; // String | Name of app for this set of routes.
String route = "route_example"; // String | Route name
try {
RouteWrapper result = apiInstance.appsAppRoutesRouteGet(app, route);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RoutesApi#appsAppRoutesRouteGet");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
app | String | Name of app for this set of routes. | |
route | String | Route name |
No authorization required
- Content-Type: application/json
- Accept: application/json
RouteWrapper appsAppRoutesRoutePatch(app, route, body)
Update a Route, Fails if the route or app does not exist. Accepts partial updates / skips validation of zero values.
Update a route
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.RoutesApi;
RoutesApi apiInstance = new RoutesApi();
String app = "app_example"; // String | name of the app.
String route = "route_example"; // String | route path.
RouteWrapper body = new RouteWrapper(); // RouteWrapper | One route to post.
try {
RouteWrapper result = apiInstance.appsAppRoutesRoutePatch(app, route, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RoutesApi#appsAppRoutesRoutePatch");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
app | String | name of the app. | |
route | String | route path. | |
body | RouteWrapper | One route to post. |
No authorization required
- Content-Type: application/json
- Accept: application/json
RouteWrapper appsAppRoutesRoutePut(app, route, body)
Create a Route if it does not exist. Update if it does. Will also create app if it does not exist. Put does not skip validation of zero values
Update or Create a route
// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.RoutesApi;
RoutesApi apiInstance = new RoutesApi();
String app = "app_example"; // String | name of the app.
String route = "route_example"; // String | route path.
RouteWrapper body = new RouteWrapper(); // RouteWrapper | One route to post.
try {
RouteWrapper result = apiInstance.appsAppRoutesRoutePut(app, route, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RoutesApi#appsAppRoutesRoutePut");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
app | String | name of the app. | |
route | String | route path. | |
body | RouteWrapper | One route to post. |
No authorization required
- Content-Type: application/json
- Accept: application/json