Skip to content
No description, website, or topics provided.
Go Makefile
Branch: master
Clone or download
Pull request Compare This branch is 4 commits behind evergreen-ci:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
acl
buildscripts
ldap
okta
rolemanager
testdata
testutil
usercache
util
vendor
.gitignore
.travis.yml
LICENSE
README.rst
app.go
app_merge.go
app_merge_test.go
app_resolve.go
app_resolve_test.go
app_routing.go
app_routing_test.go
app_test.go
auth_basic.go
auth_basic_test.go
auth_interfaces.go
auth_mock_test.go
auth_user_basic.go
auth_user_basic_test.go
counter.go
counter_test.go
csv.go
csv_test.go
error.go
error_test.go
evergreen.yaml
framework.go
framework_pagination.go
framework_pagination_test.go
framework_response.go
framework_response_error.go
framework_response_simple.go
framework_response_test.go
framework_test.go
glide.lock
glide.yaml
handling.go
handling_binary.go
handling_html.go
handling_json.go
handling_test.go
handling_text.go
handling_yaml.go
makefile
methods.go
methods_test.go
middleware.go
middleware_auth.go
middleware_auth_test.go
middleware_auth_user.go
middleware_auth_user_test.go
middleware_grip.go
middleware_grip_test.go
middleware_static.go
middleware_wrapper.go
middleware_wrapper_test.go
parsing.go
parsing_test.go
pprof.go
proxy.go
proxy_test.go
render.go
render_html.go
render_test.go
render_text.go
role.go
server.go
server_test.go
user_service_basic.go
user_service_basic_test.go

README.rst

''gimlet -- HTTP/JSON API Toolkit

gimlet is a simple collection of tools for creating simple versioned JSON/HTTP APIs. It builds on standard library tools and components of gorilla (mux) and negroni.

The goal:

  • Allow developers to implement HTTP/JSON APIs by writing http.HandlerFunc methods and passing encoding/json marshallable types to simple response-writing methods.
  • Make it easy to define a set of routes with a version prefix, and manage the version prefix at the routing layer rather than in handlers.
  • Reuse common components as necessary, and avoid recreating existing tools or making a large inflexible tool.

In short I was writing a JSON/HTTP API, and wanted the above properties and found that I had written a little library that didn't really have anything to do with the app I was writing so I'm spinning it out both because I want to use this in my next project and I hope you may find it useful.

You can read an introductory blog post, if you like.

You can’t perform that action at this time.