{"repo":"emicklei/go-restful","free":true,"listed":false,"github":"https://github.com/emicklei/go-restful","clone":"git clone https://github.com/emicklei/go-restful.git","description":"package for building REST-style Web Services using Go","language":"Go","stars":5116,"topics":["rest","go","customizable","routing","openapi"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"go-restful ========== package for building REST-style Web Services using Google Go - Code examples use v3 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: - GET = Retrieve a representation of a resource - POST = Create if you are sending content to the server to create a subordinate of the specified resource collection, using some server-side algorithm. - PUT = Create if you are sending the full content of the specified resource (URI). - PUT = Update if you are updating the full content of the specified resource. - DELETE = Delete if you are requesting the server to delete the resource - PATCH = Update partial content of a resource - OPTIONS = Get information about the communication options for the request URI Usage Without Go Modules All versions up to v2. . (on the master) are not supporting Go modules. Using Go Modules As of version v3.0.0 (on the v3 branch), this package supports Go modules. Example Full API of a UserResource Features - Routes for request &#8594; function mapping with path parameter (e.g. {id} but also prefix {var} and {var} suffix) support - Configurable router: - (default) Fast routing algorithm that allows static elements, google custom method, regular expressions and dynamic parameters in the URL path (e.g. /resource/name","default_branch":null,"files":null,"tree":[],"storefront":"/r/emicklei","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/emicklei/go-restful/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}