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. Customizable encoding using EntityReaderWriter registration. Filters for intercepting the request-response flow on Service or Route level. Request-scoped variables using attributes. Route errors produce HTTP 404/405/406/415 errors, customizable using ServiceErrorHandler(...). Request API for reading structs from JSON/XML and accessing parameters (path, query, header). Customizable gzip/deflate readers and writers using CompressorProvider registration. There are several hooks to customize the behavior of the go-restful package.
Features
- Retrieve a representation of a resource
- Request API for reading structs from JSON/XML and accessing parameters
- Routes for request
- Update partial content of a resource
- Get information about the communication options for the request URI
- Response API for writing structs to JSON/XML and setting headers