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

Function MapIntKeyStringBodyDSL

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

Source from the content-addressed store, hash-verified

292}
293
294func MapIntKeyStringBodyDSL(svcName, metName string) func() {
295 return func() {
296 _ = Service(svcName, func() {
297 Method(metName, func() {
298 Payload(func() {
299 Attribute("intmap", MapOf(Int, String))
300 })
301 HTTP(func() {
302 POST("/")
303 })
304 })
305 })
306 }
307}
308
309func MapIntKeyObjectDirectBodyDSL(svcName, metName string) func() {
310 return func() {

Callers 1

TestMapTypesFunction · 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

TestMapTypesFunction · 0.74