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

Function ObjectBodyDSL

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

Source from the content-addressed store, hash-verified

75}
76
77func ObjectBodyDSL(svcName, metName string) func() {
78 return func() {
79 var _ = Service(svcName, func() {
80 Method(metName, func() {
81 Payload(func() {
82 Attribute("name")
83 Attribute("age", Int)
84 })
85 HTTP(func() {
86 POST("/")
87 })
88 })
89 })
90 }
91}
92
93func MapBodyDSL(svcName, metName string) func() {
94 return func() {

Callers 1

TestBuildBodyTypesFunction · 0.92

Calls 6

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

Tested by 1

TestBuildBodyTypesFunction · 0.74