go-json-rest icon indicating copy to clipboard operation
go-json-rest copied to clipboard

A quick and easy way to setup a RESTful JSON API

Results 48 go-json-rest issues
Sort by recently updated
recently updated
newest added

A good use-case would be applying Semver versioning to all endpoints, right now I have to apply a middlewareFunc to every handler, because path params are not present while executing...

enhancement

From the doc: ``` Fatal is equivalent to Print() followed by a call to os.Exit(1). ``` recoverMiddleware recovers from panic, not from os.Exit, and that should be documented.

enhancement

I created ResponseRecorder for unit test handler function. I think it useful when create handler without settings App before. This is example ``` go package test import ( "net/http" "testing"...

Suggested change: Default to make a function call to log.Print instead of creating new logger if *AccessLogMiddleware.Logger is nil. It seems like it's a very uncommon pattern to create new...

v4 idea

The Trie based router scales well, but it could be even faster by replacing the current implementation of the Find() method by one that would not be based on recursion....

enhancement

Small JSON payload are actually bigger when compressed. We may want to skip the gzip compression below a given threshold. Problem the API allows to Write or WriteJson multiple times...

enhancement

Are there any plans to implement sessions in the framework? I tried to use gorilla's session, but it's not compatible because of rest.Request != http.Request and also with the ResponseWriter.

enhancement