blob: decce88cc89e96831dc219fa15e1c13a24c7bc8d [file] [log] [blame]
{
"swagger": "2.0",
"info": {
"title": "OpenWhisk",
"description": "API for OpenWhisk Configuration",
"version": "0.1.0"
},
"produces": [
"application/json"
],
"basePath": "/",
"tags": [],
"paths": {
"/": {
"get": {
"description": "Get configuration parameters for deployment including API paths, runtimes supported, and thorttle limits.",
"summary": "Get configuration parameters for deployment.",
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "API paths, runtimes, limits.",
"schema": {
"$ref": "#/definitions/Info"
}
}
}
}
}
},
"definitions": {
"Info": {
"type": "object",
"properties": {
"description": {
"type": "string",
"description": "A description of the configuration."
},
"support": {
"type": "object",
"description": "Where to file defects, feature requests, reach the community for support, etc.",
"properties": {
"github": {
"type": "string"
},
"slack": {
"type": "string"
}
}
},
"api_paths": {
"type": "array",
"description": "Available API paths.",
"items": {
"type": "string"
}
},
"limits": {
"type": "object",
"description": "Throttle limits on action and trigger activations.",
"properties": {
"actions_per_minute": {
"type": "integer",
"description": "Number of allowed action activations per minute per namespace."
},
"triggers_per_minute": {
"type": "integer",
"description": "Number of allowed trigger activations per minute per namespace."
},
"concurrent_actions": {
"type": "integer",
"description": "Number of concurrent activations allowed per namespace at any time."
}
},
"required": [
"actions_per_minute",
"triggers_per_minute",
"concurrent_actions"
]
},
"runtimes": {
"$ref": "#/definitions/RuntimesManifest"
}
},
"required": [
"description",
"support",
"api_paths",
"limits",
"runtimes"
]
},
"RuntimesManifest": {
"type": "object",
"properties": {
"family": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"description": "The action kind, implies a particular image for the action runtime."
},
"image": {
"type": "string",
"description": "The public container image name."
},
"default": {
"type": "boolean",
"description": "Indicates if this is the default action 'kind' for a runtime family."
},
"requireMain": {
"type": "boolean",
"description": "Indicates if a 'main' entry point for the action is required."
},
"attached": {
"type": "boolean",
"description": "Indicates if the action 'code' is an attachment."
},
"deprecated": {
"type": "boolean",
"description": "Indicates if runtime is deprecated: may get/delete action but not invoke/create/update."
}
},
"required": [
"kind",
"image",
"default",
"requireMain",
"attached",
"deprecated"
]
}
}
}
}
}
}