Files
fn-serverless/docs/swagger_invoke.yml
Denis Makogon 9c2dfd89c5 Fix response message on invoke handler (#1315)
* Fix response message on invoke handler

Closes: #1310

* Addressing review comments

* Addressing review comments

* Fixing NoRoute routine

* add method not allowed handler to gin
2018-11-17 10:07:07 +02:00

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