rest-layer
rest-layer copied to clipboard
REST Layer, Go (golang) REST API framework
Back-ported from https://github.com/searis/rest-layer Badges in README not updated.
Hello, I am using Mongo DB as storage, but not [rest-layer-mongo](https://github.com/rs/rest-layer-mongo). I want to implement _Contains_ and _Does Not Contain_ filters. For _Contains_ I can use the `$regex` operation. However,...
I am wondering if it is to filter based on fields of a reference scheme(s)? Let's say we have the following schemas: ```go var company = schema.Schema{ "id": schema.IDField, "name":...
I wonder if we can support cursor-based pagination instead of offset based. I was hoping to get something like: [Slack API Pagination](https://slack.engineering/evolving-api-pagination-at-slack/) We are hoping to get a RESTful feature...
There is an `rest.Error` type that captures all unrecognized errors from Hooks: ``` if err = rsrc.Update(ctx, item, original); err != nil { e = NewError(err) return e.Code, nil, e...
Etag calculation is done by marshaling the payload into json and getting the md5 of that string. All values will be converted to string, and there are some specific cases...
Hi, I want to use schema and resource package as standalone, have you an example or document? Thanks
I have an auto incrementing integer field (ID) in postgres db. Whole creating an object using POST request I have to provide OnInit hook with myself manually handling the values....
Hooks have several problems and limitations compared to middleware: - We need two methods (before and after hooks) - We can't control the flow as detailed as we would want...
Hi there, I want to propose a breaking API change, about moving `resource.Conf` in `github.com/rs/rest-layer/resource` to `conf.Conf` in `github.com/rs/rest-layer/resource/conf`. The reason for this is that I want to use resource...