Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
89 lines (87 sloc) 1.78 KB
{
"swagger": "2.0",
"info": {
"version": "1.0",
"title": "function-protected"
},
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/action": {
"get": {
"operationId": "getAction",
"x-openwhisk": {
"namespace": "xxx-your-openwhisk-namespace-for-example:niklas_heidloff%40de.ibm.com_demo-xxx",
"action": "function-protected",
"package": "serverless-web-app-sample",
"url": "https://openwhisk.ng.bluemix.net/api/v1/web/xxx-your-openwhisk-namespace-for-example:niklas_heidloff%40de.ibm.com_demo-xxx/serverless-web-app-sample/function-protected.json"
},
"responses": {
"200": {
"description": "A successful invocation response"
}
}
}
}
},
"x-ibm-configuration": {
"assembly": {
"execute": [
{
"operation-switch": {
"case": [
{
"operations": [
"getAction"
],
"execute": [
{
"invoke": {
"target-url": "https://openwhisk.ng.bluemix.net/api/v1/web/xxx-your-openwhisk-namespace-for-example:niklas_heidloff%40de.ibm.com_demo-xxx/serverless-web-app-sample/function-protected.json",
"verb": "keep"
}
}
]
}
],
"otherwise": [],
"title": "whisk-invoke"
}
}
]
},
"cors": {
"enabled": true
}
},
"basePath": "/path",
"securityDefinitions": {
"app-id": {
"flow": "application",
"tokenUrl": "",
"type": "oauth2",
"x-provider": {
"name": "app-id",
"params": {
"tenantId": "xxx-your-appid-tenantid-for-example:44d4f670-1e00-4ccb-98ad-3f03ba7e15a5-xxx"
}
},
"x-tokenintrospect": {
"url": null
}
}
},
"security": [
{
"$$label": "client_id",
"app-id": []
}
]
}