mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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.
41 lines
865 B
YAML
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 |