Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openfaas-faas
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Team Jaz CS 598 CCC Final Project
openfaas-faas
Commits
4963f39e
Commit
4963f39e
authored
6 years ago
by
Simon Pelczer
Committed by
Alex Ellis
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Adjusted Swagger.yaml accordingly to feedback
Signed-off-by:
Simon Pelczer
<
templum.dev@gmail.com
>
parent
f674211e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api-docs/swagger.yml
+52
-17
52 additions, 17 deletions
api-docs/swagger.yml
with
52 additions
and
17 deletions
api-docs/swagger.yml
+
52
−
17
View file @
4963f39e
...
...
@@ -44,7 +44,7 @@ paths:
'
400'
:
description
:
Bad Request
'
500'
:
description
:
Internal
s
erver
e
rror
description
:
Internal
S
erver
E
rror
put
:
summary
:
Update a function.
description
:
'
'
...
...
@@ -67,7 +67,7 @@ paths:
'
404'
:
description
:
Not Found
'
500'
:
description
:
Internal
s
erver
e
rror
description
:
Internal
S
erver
E
rror
delete
:
summary
:
Remove a deployed function.
description
:
'
'
...
...
@@ -90,7 +90,7 @@ paths:
'
404'
:
description
:
Not Found
'
500'
:
description
:
Internal
s
erver
e
rror
description
:
Internal
S
erver
E
rror
'
/system/alert'
:
post
:
summary
:
'
Event-sink
for
AlertManager,
for
auto-scaling'
...
...
@@ -183,7 +183,7 @@ paths:
'
404'
:
description
:
Not Found
'
500'
:
description
:
Internal
s
erver
e
rror
description
:
Internal
S
erver
E
rror
'
/function/{functionName}'
:
post
:
summary
:
Invoke a function defined in OpenFaaS
...
...
@@ -253,7 +253,7 @@ paths:
'
404'
:
description
:
Not Found
'
500'
:
description
:
Internal
s
erver
e
rror
description
:
Internal
S
erver
E
rror
'
/system/info'
:
get
:
summary
:
Get info such as provider version number and provider orchestrator
...
...
@@ -262,15 +262,12 @@ paths:
responses
:
'
200'
:
description
:
Info result
examples
:
application/json
:
|-
{"provider":"faas-swarm","version":{"sha":"7108418d9dd6b329ddff40e7393b3166f8160a88","release":"0.2.6"},"orchestration":"swarm"}
schema
:
$ref
:
'
#/definitions/Info'
'
404'
:
description
:
Endpoint Info not supported
description
:
Provider does not support info endpoint
'
500'
:
description
:
Internal
s
erver
e
rror
description
:
Internal
S
erver
E
rror
'
/healthz'
:
get
:
summary
:
Healthcheck
...
...
@@ -279,22 +276,31 @@ paths:
description
:
Healthy
'
500'
:
description
:
Not healthy
securityDefinitions
:
basicAuth
:
type
:
basic
definitions
:
Info
:
type
:
object
properties
:
provider
:
type
:
string
description
:
The OpenFaaS Provider
example
:
faas-swarm
version
:
type
:
object
description
:
Version of the OpenFaaS Provider
properties
:
sha
:
type
:
string
example
:
7108418d9dd6b329ddff40e7393b3166f8160a88
release
:
type
:
string
format
:
semver
example
:
0.2.6
orchestration
:
type
:
string
example
:
swarm
required
:
-
provider
-
version
...
...
@@ -305,6 +311,7 @@ definitions:
functionName
:
type
:
string
description
:
Name of deployed function
example
:
nodeinfo
required
:
-
functionName
FunctionDefintion
:
...
...
@@ -313,15 +320,19 @@ definitions:
service
:
type
:
string
description
:
Name of deployed function
example
:
nodeinfo
network
:
type
:
string
description
:
'
Docker
swarm
network,
usually
func_functions'
description
:
Docker swarm network, usually func_functions
example
:
func_functions
image
:
type
:
string
description
:
Docker image in accessible registry
example
:
functions/nodeinfo:latest
envProcess
:
type
:
string
description
:
Process for watchdog to fork
example
:
node main.js
envVars
:
type
:
object
additionalProperties
:
...
...
@@ -331,27 +342,30 @@ definitions:
type
:
array
items
:
type
:
string
description
:
Constraints are specific to back-end orchestration platform
description
:
Constraints are specific to OpenFaaS Provider
example
:
"
node.platform.os
==
linux"
labels
:
type
:
array
items
:
type
:
string
items
:
type
:
array
description
:
An array of labels used by the back-end for making scheduling or routing decisions
annotations
:
type
:
array
items
:
type
:
string
description
:
An array of annotations used by the back-end for management, orchestration, events and build tasks
items
:
type
:
array
secrets
:
type
:
array
items
:
type
:
string
description
:
An array of names of secrets that are required to be loaded from the Docker Swarm.
description
:
An array of names of secrets that are required to be loaded from the Docker Swarm.
example
:
"
secret-name-1"
registryAuth
:
type
:
string
description
:
>-
Private registry base64-encoded basic auth (as present in
~/.docker/config.json)
example
:
Basic dXNlcjpwYXNzd29yZA==
limits
:
type
:
object
properties
:
...
...
@@ -363,6 +377,13 @@ definitions:
example
:
"
0.01"
requests
:
type
:
object
properties
:
memory
:
type
:
string
example
:
"
128M"
cpu
:
type
:
string
example
:
"
0.01"
required
:
-
service
-
image
...
...
@@ -371,22 +392,36 @@ definitions:
type
:
object
properties
:
name
:
description
:
The name of the function
type
:
string
example
:
nodeinfo
image
:
description
:
The fully qualified docker image name of the function
type
:
string
example
:
functions/nodeinfo:latest
invocationCount
:
description
:
The amount of invocations for the specified function
type
:
number
format
:
integer
example
:
1337
replicas
:
description
:
The current minimal ammount of replicas
type
:
number
format
:
integer
example
:
2
availableReplicas
:
description
:
The current available amount of replicas
type
:
number
format
:
integer
example
:
2
envProcess
:
description
:
Process for watchdog to fork
type
:
string
example
:
node main.js
labels
:
type
:
object
additionalProperties
:
type
:
string
required
:
-
name
-
image
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment