-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.yaml
42 lines (42 loc) · 1.39 KB
/
example.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: 1.0
provider:
name: openfaas
gateway: http://127.0.0.1:8080
functions:
go-hw:
lang: go
handler: ./go-hw
image: ghcr.io/itsmurugappan/hw:latest
environment:
write_debug: true
annotations:
swagger: "{
\"get\": {
\"summary\": \"Test function returns greetings\",
\"responses\": {
\"200\": {
\"description\": \"Return greetings\",
\"content\": {
\"text/plain\": {
\"schema\": {
\"type\": \"string\",
\"example\": \"hi\"
}
}
}
},
\"401\": {
\"description\": \"Authorization information is missing or invalid.\"
},
\"404\": {
\"description\": \"Requested resouce not found.\"
},
\"405\": {
\"description\": \"Method not allowed. Check Authorization\"
},
\"5XX\": {
\"description\": \"Unexpected error.\"
}
}
}
}"