var _ = Resource("account", func() {
DefaultMedia(Account)
BasePath("/accounts")
Action("show", func() {
Routing(
GET("/:accountID"),
)
Description("Retrieve account with given id.")
Params(func() {
Param("accountID", Integer, "Account ID", func() {
Minimum(1)
})
})
Response(OK)
Response(NotFound)
Response(BadRequest, ErrorMedia)
})
}
DSLͰͷσβΠϯ