![]() |
4 년 전 | |
---|---|---|
.. | ||
log | 8 년 전 | |
swagger | 4 년 전 | |
.gitignore | 4 년 전 | |
CHANGES.md | 4 년 전 | |
LICENSE | 8 년 전 | |
README.md | 4 년 전 | |
Srcfile | 4 년 전 | |
bench_test.sh | 4 년 전 | |
compress.go | 8 년 전 | |
compressor_cache.go | 8 년 전 | |
compressor_pools.go | 8 년 전 | |
compressors.go | 8 년 전 | |
constants.go | 8 년 전 | |
container.go | 8 년 전 | |
cors_filter.go | 8 년 전 | |
coverage.sh | 4 년 전 | |
curly.go | 8 년 전 | |
curly_route.go | 8 년 전 | |
doc.go | 8 년 전 | |
entity_accessors.go | 8 년 전 | |
filter.go | 8 년 전 | |
install.sh | 4 년 전 | |
jsr311.go | 8 년 전 | |
logger.go | 8 년 전 | |
mime.go | 8 년 전 | |
options_filter.go | 8 년 전 | |
parameter.go | 8 년 전 | |
path_expression.go | 8 년 전 | |
request.go | 8 년 전 | |
response.go | 8 년 전 | |
route.go | 8 년 전 | |
route_builder.go | 8 년 전 | |
router.go | 8 년 전 | |
service_error.go | 8 년 전 | |
web_service.go | 8 년 전 | |
web_service_container.go | 8 년 전 |
package for building REST-style Web Services using Google Go
REST asks developers to use HTTP methods explicitly and in a way that's consistent with the protocol definition. This basic REST design principle establishes a one-to-one mapping between create, read, update, and delete (CRUD) operations and HTTP methods. According to this mapping:
ws := new(restful.WebService)
ws.
Path("/users").
Consumes(restful.MIME_XML, restful.MIME_JSON).
Produces(restful.MIME_JSON, restful.MIME_XML)
ws.Route(ws.GET("/{user-id}").To(u.findUser).
Doc("get a user").
Param(ws.PathParameter("user-id", "identifier of the user").DataType("string")).
Writes(User{}))
...
func (u UserResource) findUser(request *restful.Request, response *restful.Response) {
id := request.PathParameter("user-id")
...
}
(c) 2012 - 2015, http://ernestmicklei.com. MIT License
Type git shortlog -s
for a full list of contributors.