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

Function MapStringKeyIntBodyDSL

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

Source from the content-addressed store, hash-verified

327}
328
329func MapStringKeyIntBodyDSL(svcName, metName string) func() {
330 return func() {
331 _ = Service(svcName, func() {
332 Method(metName, func() {
333 Payload(func() {
334 Attribute("stringmap", MapOf(String, Int))
335 })
336 HTTP(func() {
337 POST("/")
338 })
339 })
340 })
341 }
342}
343
344func MapStringKeyObjectDirectBodyDSL(svcName, metName string) func() {
345 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