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

Function StringErrorResponseBodyDSL

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

Source from the content-addressed store, hash-verified

192}
193
194func StringErrorResponseBodyDSL(svcName, metName string) func() {
195 return func() {
196 var _ = Service(svcName, func() {
197 Method(metName, func() {
198 Error("bad", String)
199 HTTP(func() {
200 POST("/")
201 Response("bad", StatusBadRequest)
202 })
203 })
204 })
205 }
206}
207
208func ObjectErrorResponseBodyDSL(svcName, metName string) func() {
209 return func() {

Callers 1

TestBuildBodyTypesFunction · 0.92

Calls 6

MethodFunction · 0.85
POSTFunction · 0.85
ServiceFunction · 0.50
ErrorFunction · 0.50
HTTPFunction · 0.50
ResponseStruct · 0.50

Tested by 1

TestBuildBodyTypesFunction · 0.74