MCPcopy Create free account
hub / github.com/goadesign/goa / StringResponseBodyDSL

Function StringResponseBodyDSL

http/codegen/openapi/v3/testdata/dsls/types.go:108–119  ·  view source on GitHub ↗
(svcName, metName string)

Source from the content-addressed store, hash-verified

106}
107
108func StringResponseBodyDSL(svcName, metName string) func() {
109 return func() {
110 var _ = Service(svcName, func() {
111 Method(metName, func() {
112 Result(String)
113 HTTP(func() {
114 POST("/")
115 })
116 })
117 })
118 }
119}
120
121func ObjectResponseBodyDSL(svcName, metName string) func() {
122 return func() {

Callers 1

TestBuildBodyTypesFunction · 0.92

Calls 5

MethodFunction · 0.85
ResultFunction · 0.85
POSTFunction · 0.85
ServiceFunction · 0.50
HTTPFunction · 0.50

Tested by 1

TestBuildBodyTypesFunction · 0.74