IronFunctions::RoutesApi

December 19, 2016 ยท View on GitHub

All URIs are relative to https://127.0.0.1:8080/v1

MethodHTTP requestDescription
apps_app_routes_getGET /apps/{app}/routesGet route list by app name.
apps_app_routes_postPOST /apps/{app}/routesCreate new Route
apps_app_routes_route_deleteDELETE /apps/{app}/routes/{route}Deletes the route
apps_app_routes_route_getGET /apps/{app}/routes/{route}Gets route by name
apps_app_routes_route_patchPATCH /apps/{app}/routes/{route}Update a Route

apps_app_routes_get

RoutesWrapper apps_app_routes_get(app)

Get route list by app name.

This will list routes for a particular app.

Example

# load the gem
require 'iron_functions'

api_instance = IronFunctions::RoutesApi.new

app = "app_example" # String | Name of app for this set of routes.


begin
  #Get route list by app name.
  result = api_instance.apps_app_routes_get(app)
  p result
rescue IronFunctions::ApiError => e
  puts "Exception when calling RoutesApi->apps_app_routes_get: #{e}"
end

Parameters

NameTypeDescriptionNotes
appStringName of app for this set of routes.

Return type

RoutesWrapper

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

apps_app_routes_post

RouteWrapper apps_app_routes_post(app, body)

Create new Route

Create a new route in an app, if app doesn't exists, it creates the app

Example

# load the gem
require 'iron_functions'

api_instance = IronFunctions::RoutesApi.new

app = "app_example" # String | name of the app.

body = IronFunctions::RouteWrapper.new # RouteWrapper | One route to post.


begin
  #Create new Route
  result = api_instance.apps_app_routes_post(app, body)
  p result
rescue IronFunctions::ApiError => e
  puts "Exception when calling RoutesApi->apps_app_routes_post: #{e}"
end

Parameters

NameTypeDescriptionNotes
appStringname of the app.
bodyRouteWrapperOne route to post.

Return type

RouteWrapper

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

apps_app_routes_route_delete

apps_app_routes_route_delete(app, route)

Deletes the route

Deletes the route.

Example

# load the gem
require 'iron_functions'

api_instance = IronFunctions::RoutesApi.new

app = "app_example" # String | Name of app for this set of routes.

route = "route_example" # String | Route name


begin
  #Deletes the route
  api_instance.apps_app_routes_route_delete(app, route)
rescue IronFunctions::ApiError => e
  puts "Exception when calling RoutesApi->apps_app_routes_route_delete: #{e}"
end

Parameters

NameTypeDescriptionNotes
appStringName of app for this set of routes.
routeStringRoute name

Return type

nil (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

apps_app_routes_route_get

RouteWrapper apps_app_routes_route_get(app, route)

Gets route by name

Gets a route by name.

Example

# load the gem
require 'iron_functions'

api_instance = IronFunctions::RoutesApi.new

app = "app_example" # String | Name of app for this set of routes.

route = "route_example" # String | Route name


begin
  #Gets route by name
  result = api_instance.apps_app_routes_route_get(app, route)
  p result
rescue IronFunctions::ApiError => e
  puts "Exception when calling RoutesApi->apps_app_routes_route_get: #{e}"
end

Parameters

NameTypeDescriptionNotes
appStringName of app for this set of routes.
routeStringRoute name

Return type

RouteWrapper

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

apps_app_routes_route_patch

RouteWrapper apps_app_routes_route_patch(app, route, body)

Update a Route

Update a route

Example

# load the gem
require 'iron_functions'

api_instance = IronFunctions::RoutesApi.new

app = "app_example" # String | name of the app.

route = "route_example" # String | route path.

body = IronFunctions::RouteWrapper.new # RouteWrapper | One route to post.


begin
  #Update a Route
  result = api_instance.apps_app_routes_route_patch(app, route, body)
  p result
rescue IronFunctions::ApiError => e
  puts "Exception when calling RoutesApi->apps_app_routes_route_patch: #{e}"
end

Parameters

NameTypeDescriptionNotes
appStringname of the app.
routeStringroute path.
bodyRouteWrapperOne route to post.

Return type

RouteWrapper

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json