mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
revert swagger to json for logs (#639)
we need to keep it like this until we move to swagger 3, so that we don't break clients using old versions of fn and new clients.
This commit is contained in:
committed by
Travis Reeder
parent
587fc1bc3a
commit
ab225178a7
@@ -2,7 +2,7 @@ swagger: '2.0'
|
|||||||
info:
|
info:
|
||||||
title: fn
|
title: fn
|
||||||
description: The open source serverless platform.
|
description: The open source serverless platform.
|
||||||
version: "0.2.3"
|
version: "0.2.4"
|
||||||
# the domain of the service
|
# the domain of the service
|
||||||
host: "127.0.0.1:8080"
|
host: "127.0.0.1:8080"
|
||||||
# array of all schemes that your API supports
|
# array of all schemes that your API supports
|
||||||
@@ -371,7 +371,6 @@ paths:
|
|||||||
tags:
|
tags:
|
||||||
- Call
|
- Call
|
||||||
- Log
|
- Log
|
||||||
produces: ['text/plain',]
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: app
|
- name: app
|
||||||
description: App Name
|
description: App Name
|
||||||
@@ -387,7 +386,7 @@ paths:
|
|||||||
200:
|
200:
|
||||||
description: Log found
|
description: Log found
|
||||||
schema:
|
schema:
|
||||||
type: string
|
$ref: '#/definitions/LogWrapper'
|
||||||
404:
|
404:
|
||||||
description: Log not found.
|
description: Log not found.
|
||||||
schema:
|
schema:
|
||||||
@@ -637,6 +636,24 @@ definitions:
|
|||||||
$ref: '#/definitions/Call'
|
$ref: '#/definitions/Call'
|
||||||
description: "Call object."
|
description: "Call object."
|
||||||
|
|
||||||
|
LogWrapper:
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- log
|
||||||
|
properties:
|
||||||
|
log:
|
||||||
|
$ref: '#/definitions/Log'
|
||||||
|
description: "Call log entry."
|
||||||
|
|
||||||
|
Log:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
call_id:
|
||||||
|
type: string
|
||||||
|
description: Call UUID ID
|
||||||
|
log:
|
||||||
|
type: string # maybe bytes, long logs wouldn't fit into string type
|
||||||
|
|
||||||
Call:
|
Call:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|||||||
Reference in New Issue
Block a user