Files
fn-serverless/docs/swagger_invoke.yml
Tom Coupland b1938c1cbf Fns now annotated with invoke urls, as per triggers (#1172)
Clone of the trigger work to inject invoke urls into the annotations
on a fn when it is returned from the server.

Small changes to trigges code following code review of the fn code.
2018-08-16 09:44:48 +01:00

41 lines
865 B
YAML

swagger: '2.0'
info:
title: fn
description: The open source serverless platform.
version: "2.0.0"
# the domain of the service
host: "127.0.0.1:8080"
# array of all schemes that your API supports
schemes:
- https
- http
# will be prefixed to all paths
basePath: /v2
paths:
/invoke/{fnID}:
post:
operationId: "InvokeFn"
summary: "Directly invoke a function"
parameters:
-name body
in: body
description: "Function invocation data"
responses:
200:
description: "Function successfully invoked."
default:
description: "An unexpected error occurred."
schema:
$ref: '#/definitions/Error'
definitions:
Error:
type: object
properties:
message:
type: string
readOnly: true
fields:
type: string
readOnly: true