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

Function MapBodyDSL

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

Source from the content-addressed store, hash-verified

91}
92
93func MapBodyDSL(svcName, metName string) func() {
94 return func() {
95 var _ = Service(svcName, func() {
96 Method(metName, func() {
97 Payload(func() {
98 Attribute("map", MapOf(String, Any))
99 })
100 HTTP(func() {
101 POST("/")
102 })
103 })
104 })
105 }
106}
107
108func StringResponseBodyDSL(svcName, metName string) func() {
109 return func() {

Callers 1

TestBuildBodyTypesFunction · 0.92

Calls 7

MethodFunction · 0.85
PayloadFunction · 0.85
AttributeFunction · 0.85
MapOfFunction · 0.85
POSTFunction · 0.85
ServiceFunction · 0.50
HTTPFunction · 0.50

Tested by 1

TestBuildBodyTypesFunction · 0.74