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

update README links to point to master

cc65fbf944e657d2726ee7d4167f52c80b61a3d0 authored almost 11 years ago by antoine <[email protected]>
Merge branch 'v2-alpha'

Conflicts:
README.md
status.go

911ebe3b67ce4e6de9ce0e1521c22dd94d5f930b authored almost 11 years ago by antoine <[email protected]>
Remove the v2-alpha warning

ba57dc19d98e32132a90eedee60ec0ba2e017e2d authored almost 11 years ago by antoine <[email protected]>
Remove the v2 teaser

29a5a32f5643e45a6f119860d2eae2dcb8991108 authored almost 11 years ago by antoine <[email protected]>
indentation fix for pygment

043da5184ce4d1c24abbafdba78122c72685e43b authored almost 11 years ago by antoine <[email protected]>
README more polish

07d797aa82f13a97a1558730ad00fbba943e71ed authored almost 11 years ago by antoine <[email protected]>
README polish

30d91ff5679cd70f98bcce84edbe27f25ad42871 authored almost 11 years ago by antoine <[email protected]>
First pass on what's new in v2

9d09b20b857524209882760aad6fe0fd8ebe0a75 authored almost 11 years ago by antoine <[email protected]>
Forgot GAE example

58176c8abed0084dc9e14118fb2eb04c2be5939c authored almost 11 years ago by antoine <[email protected]>
Examples reorg

dbf8ca92ec1ee27fe0a79e4c75e315ab37c0cdc9 authored almost 11 years ago by antoine <[email protected]>
New method Route.MakePath

Allows reverse route resolution.

68e1c19b8e1dc533b99d08e79e95f5cf97e038a4 authored almost 11 years ago by antoine <[email protected]>
[breaking change] Use pointers to Route instead of directly the struct.

Hopefully the last breaking change of v2

1df2e61f952fcf21a4f15ca526fbbaa875cc9d78 authored almost 11 years ago by antoine <[email protected]>
golint fixes

ad05ac9e71d526ec32ff9c826abce2979f079a05 authored almost 11 years ago by antoine <[email protected]>
Better migration guide

f0a6a282c59f87483fd9a01c9ebe3a70f68575f7 authored almost 11 years ago by antoine <[email protected]>
README formatting

48a7f91f370b8021f9274c2cabff5c7e1df2d46a authored almost 11 years ago by antoine <[email protected]>
Docstrings polish

ba45f535a46bff531c52a706e5b4ec826075013c authored almost 11 years ago by antoine <[email protected]>
regen te README

e8908a13d232f66fb63425b99b7aa1c054229811 authored almost 11 years ago by antoine <[email protected]>
regen README

371232466f1fd8216fc657409afb4ba9806f474a authored almost 11 years ago by antoine <[email protected]>
Remove the extra comment delimiters

8ce41e493161fe0b198d6376fddbce988decbe72 authored almost 11 years ago by antoine <[email protected]>
Better auto-embedding of the examples

b31a9fa1bf48c0dd0969430e5997214bf6bc173c authored almost 11 years ago by antoine <[email protected]>
complete table of content

5a1725d14975f7d438f5c696104501735d689771 authored almost 11 years ago by antoine <[email protected]>
Testing multi level lists

b2d4d1509263e052c0ecfd4ba186293fdec0c5bb authored almost 11 years ago by antoine <[email protected]>
normzlize markdown headers

812b757c819d959b4a25ebdd394856044b2cdaa2 authored almost 11 years ago by antoine <[email protected]>
Working table of content ?

5fe97b72e9d7279552ccec9ba982078648e97bac authored almost 11 years ago by antoine <[email protected]>
tentative of table of content

484548705ed56824685e078ef64fd20ab9ec833c authored almost 11 years ago by antoine <[email protected]>
Fix the GAE example

ac726e0507643e9dc0eab111d21351c8b72c5353 authored almost 11 years ago by antoine <[email protected]>
README tweaks

b8952cd11284a4775ab85762936e032530971dba authored almost 11 years ago by antoine <[email protected]>
remove extra GA tag

8780c7124b5a941d8a672bb951f146ff4c2c2978 authored almost 11 years ago by antoine <[email protected]>
Move the migration guide in the new README

7f0bfbec4e38238bea3cebfbf5d63a630fbe9de0 authored almost 11 years ago by antoine <[email protected]>
Remove the simple example

9cda5dbc02898f60c21bad1cddff6f88e84607da authored almost 11 years ago by antoine <[email protected]>
go fmt

d66849e31ee5003dd844d36e2bc608821f1d78ee authored almost 11 years ago by antoine <[email protected]>
Reorder the migration guide

e15585770deda715226c9fa33576237e88b8ceaa authored almost 11 years ago by antoine <[email protected]>
Simplification of the Request utility methods

Better names, removed one that was confusing.
Overall, they provide the same features as before.

2a49bd7aeffa0b6d2bd2105e8a4afd3620677f23 authored almost 11 years ago by antoine <[email protected]>
Start with the Hello World! example

8de36dffbd99d73944d8f49347648ca9985286f6 authored almost 11 years ago by antoine <[email protected]>
README and the tool to generate it

f7540ddb42cc1e46ddc72705dbdcb13cc55b48ef authored almost 11 years ago by antoine <[email protected]>
Generated README with examples inside

3fb81bfa734877fac2a7a9c3a4f9a7eea5d5ead0 authored almost 11 years ago by antoine <[email protected]>
markdown formatting

be5ba3b504b2354797c3007f2e59e139c75df32f authored almost 11 years ago by antoine <[email protected]>
Better migration guide

5d79ab36909f68c1aa051d618940e66c20f7c610 authored almost 11 years ago by antoine <[email protected]>
Add tests for GetCorsInfo()

24cdef59cebb21621879d1fbfb490b7d8487430a authored almost 11 years ago by antoine <[email protected]>
Promote Vendoring

ad3a9fef8435dfcce7498a1605228a4a16cdba4b authored almost 11 years ago by antoine <[email protected]>
Promote Vendoring

a43c42a9cac7d0afae9d639ce854eca1b41a549e authored almost 11 years ago by antoine <[email protected]>
Link the new CORS example

1f50814a16c25e29a9d8130d963e1240b4650649 authored almost 11 years ago by antoine <[email protected]>
add support for Access-Control-Expose-Headers

5757f294166f95545e949e809a05bc9b670c39b1 authored almost 11 years ago by antoine <[email protected]>
New URL for the CORS example

4a04e181ebbf88ebc2a86951bbffa505c67fb88c authored almost 11 years ago by antoine <[email protected]>
Fix the example to reflect v2

57dce010a4c66445fcc0d3fa8ad92fbd05b76724 authored almost 11 years ago by antoine <[email protected]>
Update and move the package doc to a dedicated file.

e52b500abcc5f3ff76052c27c73f1127d84d554c authored almost 11 years ago by antoine <[email protected]>
Make allowedMethods and Headers slices instead of maps.

And uppercase, normalize the values.

8daaec1f1d5c886d59416acb6f4603f6b0f48132 authored almost 11 years ago by antoine <[email protected]>
First pass on the CORS middleware

1c968a6802aa4731fcdec6ccb89fdf92fccbca5b authored almost 11 years ago by antoine <[email protected]>
Convert this header value to uppercase to avoid mistakes.

0d91eccea74050746a28621531bae0ce609cb18e authored almost 11 years ago by antoine <[email protected]>
Advertise the v2

73b16f38d39080f85c6ba1a6d22e224130e3be54 authored almost 11 years ago by antoine <[email protected]>
Migration guide improvements

3919fbec9fbe2ed1549650ef2427c5b0a7bf5b0f authored almost 11 years ago by antoine <[email protected]>
markdown tweaks

792d1e862e94dd508ca0a98551f0fdf128e604a9 authored almost 11 years ago by antoine <[email protected]>
h3

a18917345ead3dc18aef6bd5b1206592bf84ce44 authored almost 11 years ago by antoine <[email protected]>
markdown formatting

49bdec6f3a5091075fb07372575eef1a5e1c75a7 authored almost 11 years ago by antoine <[email protected]>
Make the MigrationGuide a separated file

28617e15d88d5a54fc592f85b47743750dec3920 authored almost 11 years ago by antoine <[email protected]>
Additional v2 migration step related to the import path

3e9fe4e7a71c2848a5e07327cd653fbbf9f8faad authored almost 11 years ago by antoine <[email protected]>
Make go-json-rest compatible with goimports by moving everything under the rest/ directory.

896bfe131b5d113b20bf948b0f71f65b132935ec authored almost 11 years ago by antoine <[email protected]>
More examples.

97bf9edcbd82f6787c78b5a1f2a07762979bf367 authored almost 11 years ago by antoine <[email protected]>
Add the AuthBasicMiddleware + tests

fe95de42fa9ee069e20be3151fe75d3a45c0b34a authored almost 11 years ago by antoine <[email protected]>
Capitalize the Env variables.

Avoid typo, and make it looks like os env variables.

9fce0309504de7bd145f745dcff19ce406ba88ed authored almost 11 years ago by antoine <[email protected]>
go style fix

d3d9919c7f37bd2fe3dfe09de238e2d8a0195180 authored almost 11 years ago by antoine <[email protected]>
Reference the example

f181d54901ee073c9cdd4596d0808491cbd91a43 authored almost 11 years ago by antoine <[email protected]>
README update

53959616dd7a74fa53dd5d61a3c672c4081d0826 authored almost 11 years ago by antoine <[email protected]>
Redefine the notion of middleware and convert the internal middlewares.

A middleware is now defined like this:

type Middleware interface {
MiddlewareFunc(handler Hand...

e67fbf91b5d2db4b1d9359ef92c865cea8e40f80 authored almost 11 years ago by antoine <[email protected]>
Go style docstrings

98b39e07360b33b50e107c230953ba2e7c1ce04b authored almost 11 years ago by antoine <[email protected]>
Reference the new status example

(actually in the v2-alpha branch right now)

03bb65271e5977b8c83d1aac3043551e39aeaa6f authored almost 11 years ago by antoine <[email protected]>
Fix a bug in the ResponseWriter instantiation, and add a test

b5db936272123f861b7b9619e47c813a217341a6 authored almost 11 years ago by antoine <[email protected]>
[Breaking change] Status is now public, and the user has to define the route.

An example will be provided.
This decreases the complexity while allowing the user to wrap a mid...

c3852505172073cae8e3eb85737c558923243372 authored almost 11 years ago by antoine <[email protected]>
Go style docstrings

5c1bc9f9bd6deec8370e4aa3b74ee4dd823dbe04 authored almost 11 years ago by antoine <[email protected]>
Assemble the middleware at init time.

3% perf improvement

9d462a6c1020b45da203a06de764c515214fde80 authored almost 11 years ago by antoine <[email protected]>
Make the doc example use the v2 API

8760da2592920da3e051375105daf3a753474652 authored almost 11 years ago by antoine <[email protected]>
docstrings

f1e99a846e5d4e8278de190ab701df731429ff96 authored almost 11 years ago by antoine <[email protected]>
This header is now set by WriteHeader

10c0381eee635e9a664cf981a895513e461ae2fd authored almost 11 years ago by antoine <[email protected]>
Make Flush call WriteHeader

Otherwise, JSON specific headers are skipped.

350d5248c2ee303e49bb27b9dfee8a1ea5424933 authored almost 11 years ago by antoine <[email protected]>
Docstrings

7fea169b1440014a577b0e66703274f82fa98909 authored almost 11 years ago by antoine <[email protected]>
Reenable the auto-fail test

667892dc0019de6310faf916d81b79b4e81331b9 authored almost 11 years ago by antoine <[email protected]>
Use the rest.Error method instead of the http.Error method

e5e1f65edb153f0bb94e722743dc415cf752726b authored almost 11 years ago by antoine <[email protected]>
Move the hidden global "env" to the Request object.

945be06a64679ddd7460721e31aec18cbf5f8add authored almost 11 years ago by antoine <[email protected]>
V2 prototyping - New ResponseWriter and Middlewares

rest.ResponseWriter is now an interface.
This provides more flexibility, and the ability to writ...

28bb43fbd782a365b6eca336f25a37e115523c4f authored almost 11 years ago by antoine <[email protected]>
[Go style fixes] useless "else"

see https://code.google.com/p/go-wiki/wiki/CodeReviewComments

0c4978dce00a8e09cc5319198f19f807de69bc3b authored almost 11 years ago by antoine <[email protected]>
[Go style fixes] no underscore variables

see https://code.google.com/p/go-wiki/wiki/CodeReviewComments

6f31c161d0f14f1a50cb3e4900f807c258f37668 authored almost 11 years ago by antoine <[email protected]>
[Go style fixes] better receiver names

see https://code.google.com/p/go-wiki/wiki/CodeReviewComments

ecf1b7d5638810e8e8b715508301c19c09b06cf8 authored almost 11 years ago by antoine <[email protected]>
[Go style fixes] better receiver names

see https://code.google.com/p/go-wiki/wiki/CodeReviewComments

a272a1eb02fe640da4c4477c7249c24c8c65120c authored almost 11 years ago by antoine <[email protected]>
[Go style fixes] better receiver names

see https://code.google.com/p/go-wiki/wiki/CodeReviewComments

10a710a2e6e3485a2099433d904710a010e8b361 authored almost 11 years ago by antoine <[email protected]>
[Go style fixes] better receiver names

see https://code.google.com/p/go-wiki/wiki/CodeReviewComments

9ac9ba9dba935c79bae50e88751e75fc545b5d23 authored almost 11 years ago by antoine <[email protected]>
[Go style fixes] better receiver names

see https://code.google.com/p/go-wiki/wiki/CodeReviewComments

018432adf5838b5d43c9f88c288a19979bc90cef authored almost 11 years ago by antoine <[email protected]>
configure travis for Go 1.2.1

37a34ebeeca392d71b9a8dfac45b886c12de2fb1 authored almost 11 years ago by antoine <[email protected]>
Add one more example: auth-basic

91c54164cad2e9159e3e2ecf6a8ec7b36396e8bf authored almost 11 years ago by antoine <[email protected]>
net/http does not handle comma delimited headers for us

c463ad30259206c01a724d8a9ab7f6641a2e3466 authored almost 11 years ago by antoine <[email protected]>
s/HandleFunc/HandlerFunc/

e5c2dac929afe84d48ad7ca48a130bc138f86bf2 authored almost 11 years ago by antoine <[email protected]>
Try Go syntax highlighting in the README

6deba4956e27263e9818913a88ed9b9927e15786 authored almost 11 years ago by antoine <[email protected]>
Add link to the CORS example

eb5d775bf988bb9588904c59709fb38b37ded792 authored almost 11 years ago by antoine <[email protected]>
Move the CORS example to the go-json-rest-examples repository

c5351eeb1a73b55b5f8d29b33f411bc2c814e2f8 authored almost 11 years ago by antoine <[email protected]>
Merge pull request #43 from ant0ine/cors

CORS support

422e61ab7d815e76f55ff3bfadb8284b7dd15321 authored almost 11 years ago by Antoine Imbert <[email protected]>
Chrome and Safari send the Origin header on same origin header.

Origin and Host must be different for the request to be considered CORS request.

a21194a469a667ed5457f6f3650d7d7ed05f1d87 authored almost 11 years ago by antoine <[email protected]>
CORS support

This approach is minimalist, it essentially provides a request helper that
extracts the CORS inf...

2cb8d4692a05bda0d31e4aa0c8e7f67fb0aaf978 authored almost 11 years ago by antoine <[email protected]>
Introduce the adapter middleware ...

... 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]>
Introduce rest.HandleFunc

7ea14fa1065351e7540bde8b129b870090e75faf authored almost 11 years ago by antoine <[email protected]>
stop supporting Go 1.0.3

the CloseNotifier interface is required.

8473ab15cfe4be1695e0363dd679c103ab4a41a2 authored almost 11 years ago by antoine <[email protected]>
Make rest.RW implement the http.CloseNotifier interface

d81bc1180c33f3ff164e2957735923a3a109e98e authored almost 11 years ago by antoine <[email protected]>