mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* Fix response message on invoke handler Closes: #1310 * Addressing review comments * Addressing review comments * Fixing NoRoute routine * add method not allowed handler to gin
45 lines
976 B
YAML
45 lines
976 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."
|
|
405:
|
|
description: "Method not allowed"
|
|
schema:
|
|
$ref: '#/definitions/Error'
|
|
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 |