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
cc65fbf944e657d2726ee7d4167f52c80b61a3d0 authored almost 11 years ago by antoine <[email protected]>
Conflicts:
README.md
status.go
ba57dc19d98e32132a90eedee60ec0ba2e017e2d authored almost 11 years ago by antoine <[email protected]>
29a5a32f5643e45a6f119860d2eae2dcb8991108 authored almost 11 years ago by antoine <[email protected]>
043da5184ce4d1c24abbafdba78122c72685e43b authored almost 11 years ago by antoine <[email protected]>
07d797aa82f13a97a1558730ad00fbba943e71ed authored almost 11 years ago by antoine <[email protected]>
30d91ff5679cd70f98bcce84edbe27f25ad42871 authored almost 11 years ago by antoine <[email protected]>
9d09b20b857524209882760aad6fe0fd8ebe0a75 authored almost 11 years ago by antoine <[email protected]>
58176c8abed0084dc9e14118fb2eb04c2be5939c authored almost 11 years ago by antoine <[email protected]>
dbf8ca92ec1ee27fe0a79e4c75e315ab37c0cdc9 authored almost 11 years ago by antoine <[email protected]>
Allows reverse route resolution.
68e1c19b8e1dc533b99d08e79e95f5cf97e038a4 authored almost 11 years ago by antoine <[email protected]>Hopefully the last breaking change of v2
1df2e61f952fcf21a4f15ca526fbbaa875cc9d78 authored almost 11 years ago by antoine <[email protected]>ad05ac9e71d526ec32ff9c826abce2979f079a05 authored almost 11 years ago by antoine <[email protected]>
f0a6a282c59f87483fd9a01c9ebe3a70f68575f7 authored almost 11 years ago by antoine <[email protected]>
48a7f91f370b8021f9274c2cabff5c7e1df2d46a authored almost 11 years ago by antoine <[email protected]>
ba45f535a46bff531c52a706e5b4ec826075013c authored almost 11 years ago by antoine <[email protected]>
e8908a13d232f66fb63425b99b7aa1c054229811 authored almost 11 years ago by antoine <[email protected]>
371232466f1fd8216fc657409afb4ba9806f474a authored almost 11 years ago by antoine <[email protected]>
8ce41e493161fe0b198d6376fddbce988decbe72 authored almost 11 years ago by antoine <[email protected]>
b31a9fa1bf48c0dd0969430e5997214bf6bc173c authored almost 11 years ago by antoine <[email protected]>
5a1725d14975f7d438f5c696104501735d689771 authored almost 11 years ago by antoine <[email protected]>
b2d4d1509263e052c0ecfd4ba186293fdec0c5bb authored almost 11 years ago by antoine <[email protected]>
812b757c819d959b4a25ebdd394856044b2cdaa2 authored almost 11 years ago by antoine <[email protected]>
5fe97b72e9d7279552ccec9ba982078648e97bac authored almost 11 years ago by antoine <[email protected]>
484548705ed56824685e078ef64fd20ab9ec833c authored almost 11 years ago by antoine <[email protected]>
ac726e0507643e9dc0eab111d21351c8b72c5353 authored almost 11 years ago by antoine <[email protected]>
b8952cd11284a4775ab85762936e032530971dba authored almost 11 years ago by antoine <[email protected]>
8780c7124b5a941d8a672bb951f146ff4c2c2978 authored almost 11 years ago by antoine <[email protected]>
7f0bfbec4e38238bea3cebfbf5d63a630fbe9de0 authored almost 11 years ago by antoine <[email protected]>
9cda5dbc02898f60c21bad1cddff6f88e84607da authored almost 11 years ago by antoine <[email protected]>
d66849e31ee5003dd844d36e2bc608821f1d78ee authored almost 11 years ago by antoine <[email protected]>
e15585770deda715226c9fa33576237e88b8ceaa authored almost 11 years ago by antoine <[email protected]>
Better names, removed one that was confusing.
Overall, they provide the same features as before.
8de36dffbd99d73944d8f49347648ca9985286f6 authored almost 11 years ago by antoine <[email protected]>
f7540ddb42cc1e46ddc72705dbdcb13cc55b48ef authored almost 11 years ago by antoine <[email protected]>
3fb81bfa734877fac2a7a9c3a4f9a7eea5d5ead0 authored almost 11 years ago by antoine <[email protected]>
be5ba3b504b2354797c3007f2e59e139c75df32f authored almost 11 years ago by antoine <[email protected]>
5d79ab36909f68c1aa051d618940e66c20f7c610 authored almost 11 years ago by antoine <[email protected]>
24cdef59cebb21621879d1fbfb490b7d8487430a authored almost 11 years ago by antoine <[email protected]>
ad3a9fef8435dfcce7498a1605228a4a16cdba4b authored almost 11 years ago by antoine <[email protected]>
a43c42a9cac7d0afae9d639ce854eca1b41a549e authored almost 11 years ago by antoine <[email protected]>
1f50814a16c25e29a9d8130d963e1240b4650649 authored almost 11 years ago by antoine <[email protected]>
5757f294166f95545e949e809a05bc9b670c39b1 authored almost 11 years ago by antoine <[email protected]>
4a04e181ebbf88ebc2a86951bbffa505c67fb88c authored almost 11 years ago by antoine <[email protected]>
57dce010a4c66445fcc0d3fa8ad92fbd05b76724 authored almost 11 years ago by antoine <[email protected]>
e52b500abcc5f3ff76052c27c73f1127d84d554c authored almost 11 years ago by antoine <[email protected]>
And uppercase, normalize the values.
8daaec1f1d5c886d59416acb6f4603f6b0f48132 authored almost 11 years ago by antoine <[email protected]>1c968a6802aa4731fcdec6ccb89fdf92fccbca5b authored almost 11 years ago by antoine <[email protected]>
0d91eccea74050746a28621531bae0ce609cb18e authored almost 11 years ago by antoine <[email protected]>
73b16f38d39080f85c6ba1a6d22e224130e3be54 authored almost 11 years ago by antoine <[email protected]>
3919fbec9fbe2ed1549650ef2427c5b0a7bf5b0f authored almost 11 years ago by antoine <[email protected]>
792d1e862e94dd508ca0a98551f0fdf128e604a9 authored almost 11 years ago by antoine <[email protected]>
a18917345ead3dc18aef6bd5b1206592bf84ce44 authored almost 11 years ago by antoine <[email protected]>
49bdec6f3a5091075fb07372575eef1a5e1c75a7 authored almost 11 years ago by antoine <[email protected]>
28617e15d88d5a54fc592f85b47743750dec3920 authored almost 11 years ago by antoine <[email protected]>
3e9fe4e7a71c2848a5e07327cd653fbbf9f8faad authored almost 11 years ago by antoine <[email protected]>
896bfe131b5d113b20bf948b0f71f65b132935ec authored almost 11 years ago by antoine <[email protected]>
97bf9edcbd82f6787c78b5a1f2a07762979bf367 authored almost 11 years ago by antoine <[email protected]>
fe95de42fa9ee069e20be3151fe75d3a45c0b34a authored almost 11 years ago by antoine <[email protected]>
Avoid typo, and make it looks like os env variables.
9fce0309504de7bd145f745dcff19ce406ba88ed authored almost 11 years ago by antoine <[email protected]>d3d9919c7f37bd2fe3dfe09de238e2d8a0195180 authored almost 11 years ago by antoine <[email protected]>
f181d54901ee073c9cdd4596d0808491cbd91a43 authored almost 11 years ago by antoine <[email protected]>
53959616dd7a74fa53dd5d61a3c672c4081d0826 authored almost 11 years ago by antoine <[email protected]>
A middleware is now defined like this:
type Middleware interface {
MiddlewareFunc(handler Hand...
98b39e07360b33b50e107c230953ba2e7c1ce04b authored almost 11 years ago by antoine <[email protected]>
(actually in the v2-alpha branch right now)
03bb65271e5977b8c83d1aac3043551e39aeaa6f authored almost 11 years ago by antoine <[email protected]>b5db936272123f861b7b9619e47c813a217341a6 authored almost 11 years ago by antoine <[email protected]>
An example will be provided.
This decreases the complexity while allowing the user to wrap a mid...
5c1bc9f9bd6deec8370e4aa3b74ee4dd823dbe04 authored almost 11 years ago by antoine <[email protected]>
3% perf improvement
9d462a6c1020b45da203a06de764c515214fde80 authored almost 11 years ago by antoine <[email protected]>8760da2592920da3e051375105daf3a753474652 authored almost 11 years ago by antoine <[email protected]>
f1e99a846e5d4e8278de190ab701df731429ff96 authored almost 11 years ago by antoine <[email protected]>
10c0381eee635e9a664cf981a895513e461ae2fd authored almost 11 years ago by antoine <[email protected]>
Otherwise, JSON specific headers are skipped.
350d5248c2ee303e49bb27b9dfee8a1ea5424933 authored almost 11 years ago by antoine <[email protected]>7fea169b1440014a577b0e66703274f82fa98909 authored almost 11 years ago by antoine <[email protected]>
667892dc0019de6310faf916d81b79b4e81331b9 authored almost 11 years ago by antoine <[email protected]>
e5e1f65edb153f0bb94e722743dc415cf752726b authored almost 11 years ago by antoine <[email protected]>
945be06a64679ddd7460721e31aec18cbf5f8add authored almost 11 years ago by antoine <[email protected]>
rest.ResponseWriter is now an interface.
This provides more flexibility, and the ability to writ...
see https://code.google.com/p/go-wiki/wiki/CodeReviewComments
0c4978dce00a8e09cc5319198f19f807de69bc3b authored almost 11 years ago by antoine <[email protected]>see https://code.google.com/p/go-wiki/wiki/CodeReviewComments
6f31c161d0f14f1a50cb3e4900f807c258f37668 authored almost 11 years ago by antoine <[email protected]>see https://code.google.com/p/go-wiki/wiki/CodeReviewComments
ecf1b7d5638810e8e8b715508301c19c09b06cf8 authored almost 11 years ago by antoine <[email protected]>see https://code.google.com/p/go-wiki/wiki/CodeReviewComments
a272a1eb02fe640da4c4477c7249c24c8c65120c authored almost 11 years ago by antoine <[email protected]>see https://code.google.com/p/go-wiki/wiki/CodeReviewComments
10a710a2e6e3485a2099433d904710a010e8b361 authored almost 11 years ago by antoine <[email protected]>see https://code.google.com/p/go-wiki/wiki/CodeReviewComments
9ac9ba9dba935c79bae50e88751e75fc545b5d23 authored almost 11 years ago by antoine <[email protected]>see https://code.google.com/p/go-wiki/wiki/CodeReviewComments
018432adf5838b5d43c9f88c288a19979bc90cef authored almost 11 years ago by antoine <[email protected]>37a34ebeeca392d71b9a8dfac45b886c12de2fb1 authored almost 11 years ago by antoine <[email protected]>
91c54164cad2e9159e3e2ecf6a8ec7b36396e8bf authored almost 11 years ago by antoine <[email protected]>
c463ad30259206c01a724d8a9ab7f6641a2e3466 authored almost 11 years ago by antoine <[email protected]>
e5c2dac929afe84d48ad7ca48a130bc138f86bf2 authored almost 11 years ago by antoine <[email protected]>
6deba4956e27263e9818913a88ed9b9927e15786 authored almost 11 years ago by antoine <[email protected]>
eb5d775bf988bb9588904c59709fb38b37ded792 authored almost 11 years ago by antoine <[email protected]>
c5351eeb1a73b55b5f8d29b33f411bc2c814e2f8 authored almost 11 years ago by antoine <[email protected]>
CORS support
422e61ab7d815e76f55ff3bfadb8284b7dd15321 authored almost 11 years ago by Antoine Imbert <[email protected]>Origin and Host must be different for the request to be considered CORS request.
a21194a469a667ed5457f6f3650d7d7ed05f1d87 authored almost 11 years ago by antoine <[email protected]>
This approach is minimalist, it essentially provides a request helper that
extracts the CORS inf...
... allowing for future rest.HandleFunc based middleware.
(Could be used by CORS and Auth support)
f61d40375bbb9c76642e8a58f3d04fdf056dc93a authored almost 11 years ago by antoine <[email protected]>7ea14fa1065351e7540bde8b129b870090e75faf authored almost 11 years ago by antoine <[email protected]>
the CloseNotifier interface is required.
8473ab15cfe4be1695e0363dd679c103ab4a41a2 authored almost 11 years ago by antoine <[email protected]>d81bc1180c33f3ff164e2957735923a3a109e98e authored almost 11 years ago by antoine <[email protected]>