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

Function StringBodyDSL

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

Source from the content-addressed store, hash-verified

3import . "goa.design/goa/v3/dsl"
4
5func StringBodyDSL(svcName, metName string) func() {
6 return func() {
7 var _ = Service(svcName, func() {
8 Method(metName, func() {
9 Payload(String)
10 HTTP(func() {
11 POST("/")
12 })
13 })
14 })
15 }
16}
17
18func StringEnumBodyDSL() func() {
19 return func() {

Callers 1

TestBuildBodyTypesFunction · 0.92

Calls 5

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

Tested by 1

TestBuildBodyTypesFunction · 0.74