5 Commits (78a1aae7e885cc4a82162842ac57d2aa844e72d8)
 

Author SHA1 Message Date
alex 78a1aae7e8
cmd/noxy: add CORS headers to all endpoints
the simplest approach at the moment: allow requests from all origins,
only GET and OPTIONS methods.

allowed headers are '*'. this prevents clients from providing
credentials via cookies which isn't used anyway. nuff cookies.
2 years ago
alex 813d0501bd
basic implementation of the last api version
the meat is in Noxer struct, in noxy.go.
executable server entry point is in cmd/noxy/main.go.

all request responses are cached using a rudimentary filesystem
based caching. a max storage quota is not implemented yet.
2 years ago
alex 8dc6a62eb8
docs: replace api with a simpler version
the previous design was too complex to implement due its double
roundtrip: first JSON, then data.

in this new design, the client gets the data right away, single
roundtrip.
2 years ago
alex 8d1e0c3520
docs: change api response format from objects to arrays
a possibly better data format to work with in javascript.
2 years ago
alex 780b16cf5f
initial: api v1 draft 2 years ago