github.com/goadesign/goa/http/design/testdata


testdata

import "github.com/goadesign/goa/http/design/testdata"

Overview

Index

Package files

endpoint_dsls.go response_dsls.go

Variables

var ArrayResultResponseWithHeadersDSL = func() {
    Service("ArrayResultResponseWithHeaders", func() {
        Method("Method", func() {
            Result(func() {
                Attribute("foo", ArrayOf(String))
            })
            HTTP(func() {
                POST("/")
                Response(func() {
                    Header("foo:Location")
                })
            })
        })
    })
}
var DuplicateWCRouteDSL = func() {
    Service("InvalidRoute", func() {
        HTTP(func() {
            Path("/{id}")
        })
        Method("Method", func() {
            Payload(func() {
                Attribute("id", String)
            })
            HTTP(func() {
                POST("/{id}")
            })
        })
    })
}
var EmptyResultEmptyResponseDSL = func() {
    Service("EmptyResultEmptyResponse", func() {
        Method("Method", func() {
            HTTP(func() {
                POST("/")
            })
        })
    })
}
var EmptyResultNonEmptyResponseDSL = func() {
    Service("EmptyResultNonEmptyResponse", func() {
        Method("Method", func() {
            HTTP(func() {
                POST("/")
                Response(StatusOK)
            })
        })
    })
}
var EmptyResultResponseWithHeadersDSL = func() {
    Service("EmptyResultResponseWithHeaders", func() {
        Method("Method", func() {
            HTTP(func() {
                POST("/")
                Response(func() {
                    Header("foo:Location")
                })
            })
        })
    })
}
var MapResultResponseWithHeadersDSL = func() {
    Service("MapResultResponseWithHeaders", func() {
        Method("Method", func() {
            Result(func() {
                Attribute("foo", MapOf(String, String))
            })
            HTTP(func() {
                POST("/")
                Response(func() {
                    Header("foo:Location")
                })
            })
        })
    })
}
var NonEmptyResultEmptyResponseDSL = func() {
    Service("NonEmptyResultEmptyResponse", func() {
        Method("Method", func() {
            Result(String)
            HTTP(func() {
                POST("/")
            })
        })
    })
}
var ObjectResultResponseWithHeadersDSL = func() {
    Service("ObjectResultResponseWithHeaders", func() {
        Method("Method", func() {
            Result(func() {
                Attribute("foo", String)
            })
            HTTP(func() {
                POST("/")
                Response(func() {
                    Header("foo:Location")
                })
            })
        })
    })
}
var ValidRouteDSL = func() {
    Service("ValidRoute", func() {
        HTTP(func() {
            Path("/{base_id}")
        })
        Method("Method", func() {
            Payload(func() {
                Attribute("base_id", String)
                Attribute("id", String)
            })
            HTTP(func() {
                POST("/{id}")
            })
        })
    })
}

Generated by godoc2md