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

Function ObjectResponseBodyDSL

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

Source from the content-addressed store, hash-verified

119}
120
121func ObjectResponseBodyDSL(svcName, metName string) func() {
122 return func() {
123 var _ = Service(svcName, func() {
124 Method(metName, func() {
125 Result(func() {
126 Attribute("name")
127 Attribute("age", Int)
128 Attribute("misc", Any)
129 })
130 HTTP(func() {
131 POST("/")
132 })
133 })
134 })
135 }
136}
137
138func MultiCookieResponseBodyDSL(svcName, metName string) func() {
139 return func() {

Callers 1

TestBuildBodyTypesFunction · 0.92

Calls 6

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

Tested by 1

TestBuildBodyTypesFunction · 0.74