Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/casbin/go-json-rest

A quick and easy way to setup a RESTful JSON API
https://github.com/casbin/go-json-rest

Better release notes

d61aa985da86b0765a048218c21b101be4b3af73 authored almost 10 years ago by antoine <[email protected]>
small README edits

3c1e4cd9e6a08320149214253b0abc00b0583407 authored almost 10 years ago by antoine <[email protected]>
Beginning of release note and migration guide.

a71f61ef704a0a001eac205a9e2fa56e9d30d0c1 authored almost 10 years ago by antoine <[email protected]>
update the docstring example

564f3f7ac563ee612c7fc4b44d74755c720d6ef0 authored almost 10 years ago by antoine <[email protected]>
Fix the definition of this log format (typo)

484a65b65c4dc7ca43bf72c27bde50fb04f7eed4 authored almost 10 years ago by antoine <[email protected]>
Test for the Default stack of Middlewares

d7e0359c0c4352f8349955c7952353894d83e87a authored almost 10 years ago by antoine <[email protected]>
Add test for the Api object

3567c35c8700618894a93753974c336c888e56ea authored almost 10 years ago by antoine <[email protected]>
examples update

58f2f5f00f0b1642f7e8c71035647e3d3699f9f3 authored almost 10 years ago by antoine <[email protected]>
introduce api.SetApp(app App) and change the Api constructor

* Make the construction of the Api easier to read.
* allows Api with no App
* have things writte...

1ae9788f55cdddcefeaf685e325de4bca467974e authored almost 10 years ago by antoine <[email protected]>
More examples polish

021106ced810bcbae764aa3cbf5bf900df787b65 authored almost 10 years ago by antoine <[email protected]>
More examples converted to v3

3797cdf57c9cb708664eab8bd4f23cfad14dccbc authored almost 10 years ago by antoine <[email protected]>
example improvements

007f99a6ca04f3c110de6ed1ad787c9d6f1ab5fe authored almost 10 years ago by antoine <[email protected]>
Introduce the DefaultCommonStack and change the order some middlewares

0283b1bc9a96aa8dbd9d3c340e76ec37eb555fc2 authored almost 10 years ago by antoine <[email protected]>
Explain why gzip must be wrapped by TimerMiddleware and RecorderMiddleware

6a8ce399e5aa75ed48b91a5697a3e54b6a29489a authored almost 10 years ago by antoine <[email protected]>
more converted examples

ff4dfab8d2b8b64757a7cd3a2aaddb4927d7d70a authored almost 10 years ago by antoine <[email protected]>
more exmples converted to v3

2fdcddb4b6d49695a0846098b16f69c243283a55 authored almost 10 years ago by antoine <[email protected]>
More examples converted to v3

79f20bba5be92b6b24a67d7995c2007a29c43f92 authored almost 10 years ago by antoine <[email protected]>
regen the READMEN with v3 doc, and 2 less examples

e1903abd7c8704fddeb7d7a8761e63aaa38cd115 authored almost 10 years ago by antoine <[email protected]>
regen the README with some v3 examples

c9782e3af57b61e8ccea2ec7be707d691c9d7e47 authored almost 10 years ago by antoine <[email protected]>
More docstrings improvements

6e90b6b303a0311a49893da133cb0c2d3004fa79 authored almost 10 years ago by antoine <[email protected]>
update the docstring example

ca6ad2fe5dbda5a33b3826df0b67dce225d61f98 authored almost 10 years ago by antoine <[email protected]>
write the tests in a consistent way

2494a60026a66e8758680ad9121b52d4808f7a01 authored almost 10 years ago by antoine <[email protected]>
AccessLogJsonMiddlesware docstrings

1853d6425814346b70bbea610ffaa639f678fcb2 authored almost 10 years ago by antoine <[email protected]>
defines the DefaultProdStack of middlewares.

7da49a11fa6de9ccd96d983027370705ee64f52e authored almost 10 years ago by antoine <[email protected]>
better docstring for AccessLogApacheMiddleware

05b99a56e899be552e2fc4c77a27bc58a9d726be authored almost 10 years ago by antoine <[email protected]>
docstring for MakeRouter

API with this new API so far.

804cb0487aeab994a20aa475fb0efa18c90c2759 authored almost 10 years ago by antoine <[email protected]>
Fix the content type checker tests

ad6ce3204ae9c44887242d3e5779f6214bce1887 authored almost 10 years ago by antoine <[email protected]>
consistent names for the test functions

3514a4d78d6be53d5057e6113241ab52eca0d36d authored almost 10 years ago by antoine <[email protected]>
Add tests for the content type checker

a75dc7760cc472777868bcd2ddca0d5d8ef87035 authored almost 10 years ago by antoine <[email protected]>
fix the status tests

bd9cbcc31a9c0cb3835411c13f80e243d7753188 authored almost 10 years ago by antoine <[email protected]>
link to the v3 work

8eb955c066e9d975e1fae3d71f6529da29816c53 authored almost 10 years ago by antoine <[email protected]>
rewrite the status middleware tests

78f31f62d885a73eb91dace1a9538e993328380f authored almost 10 years ago by antoine <[email protected]>
rewrite gzip middleware tests

79e08a857223d931e6c504dee4bc8fcde3d2d52f authored almost 10 years ago by antoine <[email protected]>
rewrite the powered_by middleware tests

4658af7363689f6672d68692034ab54dd44f3d30 authored almost 10 years ago by antoine <[email protected]>
polish recover middleware tests

73eb322b8cdd27ca6ad58285f8bc4659bb1afa8f authored almost 10 years ago by antoine <[email protected]>
polish json_indent middleware tests

34ead956c8cd684f382646c9ad31fdd6db027a2c authored almost 10 years ago by antoine <[email protected]>
polish the recorder middleware tests

afa4a96b3ec02971345e8ae484e181fbc61acf45 authored almost 10 years ago by antoine <[email protected]>
polish jsonp middleware unit tests

553d6ee2831f34bdee13c3f22f088452039cad4c authored almost 10 years ago by antoine <[email protected]>
polish the access log middleware tests

2370f1d289df5816622177cec1dee7e9b095fcd0 authored almost 10 years ago by antoine <[email protected]>
polish the timer test

6f0c6bf9e92cbda20697feb16422ed9bac574880 authored almost 10 years ago by antoine <[email protected]>
Introduce AppSimple and MiddlewareSimple types.

Convenient to write simple apps and middlewares, especially in unit tests.

eg:

rest.NewApi(res...

3933816b9e3a8752b05093610fa5da77df4209c1 authored almost 10 years ago by antoine <[email protected]>
Better way to write this unit test

testing the REMOTE_USER env variable in addition.

d5093211a161ac9b1ad5915cdee28c9c09a93bef authored almost 10 years ago by antoine <[email protected]>
Rewrite some unit tests in term of the new api.

69c9890fef039de551c2572e9c002be76287b7f3 authored almost 10 years ago by antoine <[email protected]>
docstrings

4d06641a376255b41c815e9b4062497c314741f7 authored almost 10 years ago by antoine <[email protected]>
New router constructor

1cd8134153ab18b8bf5b55b4bd6de890c64e5fd0 authored almost 10 years ago by antoine <[email protected]>
go fmt

0271530a86106a3297935e8e7fbf0ce18cbd999c authored almost 10 years ago by antoine <[email protected]>
unused import

8c228127a3500601d38f7a86a60794a0eacd86be authored almost 10 years ago by antoine <[email protected]>
add a deprecation warning on the use of the ResourceHandler

a66124586f5f6553e158374a165c991ce220a605 authored almost 10 years ago by antoine <[email protected]>
this method was deprecated for months, it's now removed

1087feee8ee65fb5a91097efb474855177bee03e authored almost 10 years ago by antoine <[email protected]>
Make all middlewares public

f8abb91ef0a70fd316572830d6ddffed38aa1235 authored almost 10 years ago by antoine <[email protected]>
go fmt

5b566010de54e74aa375211bfbd42ffbfb4d33bf authored almost 10 years ago by antoine <[email protected]>
Rename this private variable

48f0c6178682941966ff0e85706d8e0831c14a04 authored almost 10 years ago by antoine <[email protected]>
Docstrings

17676db32ba1a6a635c1d6271bbe4c3ca8f60742 authored almost 10 years ago by antoine <[email protected]>
Implementation branch for the v3

Spec here: https://github.com/ant0ine/go-json-rest/issues/110

This commit includes the new inte...

46e0dddf5857b3a076f09794e155260bb5037ef8 authored almost 10 years ago by antoine <[email protected]>
Rewrite the statusMiddleware unit test without using ResourceHandler

preparation step for v3

4ccf516f9f602cf5dd45e70b8312cd6cd93027b2 authored almost 10 years ago by antoine <[email protected]>
Simplify the code of the access log unit tests ...

... by using the adapterFunc method

f7344409ecc286ea06f3b888bfb9461e5dc0bfb7 authored almost 10 years ago by antoine <[email protected]>
Add a deprecation warning for RouteObjectMethod

822d81665be5856840344d51c170da48b9d55b76 authored almost 10 years ago by antoine <[email protected]>
Merge branch 'master' of github.com:ant0ine/go-json-rest

b8b0cc9933df90a9865ec2ff6794926a26e866f0 authored almost 10 years ago by antoine <[email protected]>
Prepare GetStatus to be a public method.

Once the statusMiddleware is public, this method will be public too.
(preparation for v3)

18e155811e823227ea1789dc22e16aaa2704cb3a authored almost 10 years ago by antoine <[email protected]>
Merge pull request #122 from ant0ine/AuthBasicAuthorizator

New option on the AuthBasic Middleware to authorize the user.

aacf1a54b233f4dc4f5475bac510df9922a0964a authored almost 10 years ago by Antoine Imbert <[email protected]>
New option on the AuthBasic Middleware to authorize the user.

This authorization happens after authentication, and can be based on
the current request.

Note:...

b92871ab1ba2f49269b8d74c88b7a6cb7b7b7674 authored almost 10 years ago by antoine <[email protected]>
Merge pull request #121 from ant0ine/jsonIndentMiddlewareTake2

Introduce a new middleware jsonIndentMiddleware (take2)

292306917e87e33542951f55214e07667f3d0849 authored almost 10 years ago by Antoine Imbert <[email protected]>
Introduce a new middleware jsonIndentMiddleware

This is a way to replace the jsonAdapter option by a middleware option.
The jsonAdapter is now j...

93047807c15bc568e84232998465a51e7ccfe0f7 authored almost 10 years ago by antoine <[email protected]>
Merge pull request #120 from ant0ine/poweredByMiddleware

Introduce the poweredByMiddleware

658768d1e476c73fd42fa1e3e2fadd19954b264d authored almost 10 years ago by Antoine Imbert <[email protected]>
Introduce the poweredByMiddleware

It move the existing X-Powered-By feature from being an adapter option,
to being a dedicated mid...

8d12d0f346cf7782a8ba9b2d4229ea61c2898b06 authored almost 10 years ago by antoine <[email protected]>
Unit tests for RecoverMiddleware

2b6e8f63fce985c20719917229270dbbf8192b27 authored almost 10 years ago by antoine <[email protected]>
Fix the unit tests that were assuming UTC local time

Thanks @yannk for the report!

7583c13dc3901ba01e7a47f5217767dca5a20663 authored almost 10 years ago by antoine <[email protected]>
Fix bad copy paste from the gzip test

bcc9f66233f4ebc7dbc16ba093f1e4874323e7e7 authored about 10 years ago by antoine <[email protected]>
Make statusMiddleware looks like the other middlewares.

preparation step for the v3 where this middleware will be public.

9ad13be909f97340a9ebc2dd1e2e6f1994a8dd34 authored about 10 years ago by antoine <[email protected]>
Middlewares docstrings.

preparation for the v3 where these middlewares will become public.

6496748fb93fc0f77700dbb5a57d72bb24d588e2 authored about 10 years ago by antoine <[email protected]>
Docstrings for the recover middleware.

Preparation step for v3, this middleware will become public.

9cec235b6ac0cc4c832082f875711e996c8bc0a8 authored about 10 years ago by antoine <[email protected]>
Rename error.go recover.go

ebb0cf0063f2532869f55e7aba4dc6a3799fbbaf authored about 10 years ago by antoine <[email protected]>
Rename errorMiddleware to recoverMiddleware

0401bb749df8f8195206fa8e8737a55edf6d0029 authored about 10 years ago by antoine <[email protected]>
Happy new year !

d0781e007b59f4f9f4dc8d7acfdf01345a5b018d authored about 10 years ago by antoine <[email protected]>
Merge pull request #109 from ant0ine/v3Preparation

Preparation Refactoring before v3 work.

4df45cc1553762cb672fa70206c0472fc6570145 authored about 10 years ago by Antoine Imbert <[email protected]>
Preparation Refactoring before v3 work.

This does not introduce any API change.
It refactors the internal of ResourceHandler. The the lo...

9f6aa15c81e7b3d3e30bca0906742571623a72f8 authored about 10 years ago by antoine <[email protected]>
Try to make the examples a little bit shorter

8cc310f7d4e12bf8677ff00a90986fe633d3ab24 authored about 10 years ago by antoine <[email protected]>
pass go vet

82829a973e48210142c8f29206c757c6b216e9dd authored about 10 years ago by antoine <[email protected]>
go fmt

23cedb3d72b9ff8af0c40837035047266cc9ce74 authored about 10 years ago by antoine <[email protected]>
pass go vet

b944ac79291285c1af852fbb9137ad159c371d1e authored about 10 years ago by antoine <[email protected]>
Better error messages (getting more go vet compliant)

e3064d02a40818560cff3c99ac55c2a3fd5654b0 authored about 10 years ago by antoine <[email protected]>
Try new badges with http://shields.io/

2682c60ba972b9ec0b36dbafa17a76c8bfa7f9ab authored about 10 years ago by antoine <[email protected]>
Merge pull request #107 from Tovkal/master

Fixed "using unaddressable value"

3b30c0bf4b57962a972544da73b51dec8228ac30 authored about 10 years ago by Antoine Imbert <[email protected]>
Fixed "using unaddressable value"

8a9baf383e93314836f69eb616547ce318db4c09 authored about 10 years ago by Andrés P <[email protected]>
Remove Coveralls for now.

1b22f46b25269df25c6063d509df6a5f52eedcfa authored about 10 years ago by antoine <[email protected]>
Merge pull request #106 from hermanschaaf/master

Fix link to stretchr/graceful

ec5a69b009372be1053b76f34d9684314ba13b3e authored about 10 years ago by Antoine Imbert <[email protected]>
coveralls badge

46069d04dd4d50fc9089e5f9bb0d387399fdbd5f authored about 10 years ago by antoine <[email protected]>
Fix link to stretchr/graceful

e3175d14fb53adf180f06c05529c146eb47b783f authored about 10 years ago by Herman Schaaf <[email protected]>
New example: Graceful Shutdown using github.com/stretchr/graceful

30c86ea2c1f60e297acc6404d84e43407b95eda7 authored about 10 years ago by antoine <[email protected]>
try Go 1.4 on travis-ci

535011e953e10bf66271a1fc802c9d0787ed8bdf authored about 10 years ago by antoine <[email protected]>
typo

8ed515ee12fe0f256c209668cdccd3e3f681beaf authored about 10 years ago by antoine <[email protected]>
Remove perf/ from this repo ...

... made on a Virtual Machine they were not accurate anyway.

2b7b0c739af66f8daf8c12c2c9b03f1be2c09570 authored about 10 years ago by antoine <[email protected]>
Docstring formatting for godoc.org

89c38b01334f5b09bc7417fe161cf482fdf308bb authored about 10 years ago by antoine <[email protected]>
New example about NewRelic integration

414249b114697b817d5d6501159aced8c7f0394e authored about 10 years ago by antoine <[email protected]>
Fix docstring formating

6f11ba5626d4e127db7a43c8d91d5cb7cec2419f authored about 10 years ago by antoine <[email protected]>
Merge pull request #98 from ant0ine/apacheLogging

Apache logging

a2cdae79aba37257b82cb71eab506a9d80463ec7 authored about 10 years ago by Antoine Imbert <[email protected]>
Fix %b and support %b (apache log format)

63e45041de0a76f7883663e5e30db797607ff8bb authored about 10 years ago by antoine <[email protected]>
Rename the log format contants

5721cf1e7a040478d6f0dadbdae8e06fac0a197f authored about 10 years ago by antoine <[email protected]>
Be a bit more defensive with the Env interface.

Not sure how this middleware will be used in the future.
Better check that the Env variable are ...

bfd3612d164ffa8be8b12dada0cdf566d6fc7adb authored about 10 years ago by antoine <[email protected]>
Add tests for accessLogJsonMiddleware

450ad54c6b75846eeef828f8df03f0f437c1d77c authored about 10 years ago by antoine <[email protected]>