github.com/deluan/rest (go): Package rest provides a simple REST controller compatible with the JSON Server API "dialect". This package enables the creation of backends for the great Admin-on-rest package using pure Go, but can be used in other scenarios where you need a simple REST server for your data.  To use it, you will need to provide an implementation of the Repository interface and a function to create such repository.  The controller was created to be used with Gorilla Pat, as it requires URL params to be parsed and set as query params. You can easily adapt it to work with other routers and frameworks using a custom middleware.  The functionality is provided by a set of handlers named after the REST verbs they handle: Get(), GetAll(), Put(), Post() and Delete(). Each of these functions receive a function used to construct your repository, and an optional implementation of Logger (compatible with Logrus). If no Logger is specified, the functions falls back to the default Go log package  Example using Gorilla Pat (https://github.com/gorilla/pat):  Example using chi router (https://github.com/go-chi/chi):  For more info see:
Keywords: admin-on-rest|json-server|react-admin|rest-api|restful-api|simple-restapi