Commit Graph

  • 15559d0be2 use c.ClientIP() rather than manually accessing c.Request.RemoteAddr Howl 2016-07-06 19:35:49 +0200
  • 45d0de234b Fix race condition in specificRateLimiter Howl 2016-07-06 19:24:11 +0200
  • faf948b037 Implement rate limiting - 60 requests per minute for requests without a valid API token - 2000 requests per minute per user for requests with a valid API token Howl 2016-07-06 16:33:58 +0200
  • 0a870ee742 Remove read privilege. Public data is now readable by everyone without having to pass an API token. Feel free to test around as much as you like! Howl 2016-07-06 14:22:43 +0200
  • 534d5183ed It's not rank, it's privileges Howl 2016-07-06 14:12:57 +0200
  • fcdd042d6c Finish up with new ranks and stuff on the API Howl 2016-07-04 00:06:23 +0200
  • 39f6b2bbcf New privileges on API (allowed column only) Nyo 2016-07-03 21:55:03 +0200
  • 244186cf4e Allow compilation of the API on Windows Nyo 2016-06-22 13:13:33 +0200
  • 7cbbb626c1 LEFT JOIN -> INNER JOIN Howl 2016-06-18 02:42:47 +0200
  • b3e31734f5 Release logging to sentry Howl 2016-06-17 10:34:53 +0200
  • 427f2ff890 Remove errore_meme Howl 2016-06-16 14:06:09 +0200
  • 02f0449b39 Stack traces are only useful for panics Howl 2016-06-16 14:05:26 +0200
  • 6554447cbc Use ID rather than IP, memes Howl 2016-06-16 14:01:37 +0200
  • ef9c0c6c6a When erroring from c.Error(), give actual error, not a *gin.Error Howl 2016-06-16 13:59:18 +0200
  • 9658957067 Better recovery Howl 2016-06-16 13:49:35 +0200
  • cbcfacb06a Fix misplaced if Howl 2016-06-16 13:14:19 +0200
  • 06eb64ecf5 error logging with schiavo -> error logging with sentry Howl 2016-06-16 12:45:10 +0200
  • 24d34eb741 v1.TokenNewPOST => /tokens, /tokens/new Howl 2016-06-15 00:23:55 +0200
  • fc38503bdd add GET /tokens/self 0.1.0 Howl 2016-06-14 12:01:30 +0200
  • 4d9ec829a8 Add token listing at GET /tokens, also add a token-fixing tool at /tokens/fix_privileges. Howl 2016-06-14 11:32:11 +0200
  • 52d7b65493 Add /api/v1/tokens/self/delete Howl 2016-06-14 10:03:53 +0200
  • a9b82f99b5 Add global leaderboard Howl 2016-06-14 09:37:11 +0200
  • a65cf086f0 Add Documentation API Howl 2016-06-13 22:40:01 +0200
  • 32738aaae0 Simplify string to int conversion where possible Howl 2016-06-13 21:48:09 +0200
  • 2f027ce853 Remove Message from 404 response, to allow easy distinction between missing method and data not found Howl 2016-06-13 21:47:35 +0200
  • da6fcb83f7 Don't allow "weird" characters in jsonp callback Howl 2016-06-13 21:17:43 +0200
  • 25a4cfced2 MIT -> proprietary license Howl 2016-06-10 13:19:13 +0200
  • f32de541a4 Fix set_status 500 ing when beatmap is not found by ID Howl 2016-06-09 10:52:55 +0200
  • d87027c85a always rank the whole mapset, not just a single diff Howl 2016-06-09 00:29:00 +0200
  • b1fc609706 Add BeatmapsRankedFrozenFullGET, an endpoint to get all beatmaps having a frozen ranked status Howl 2016-06-08 23:33:08 +0200
  • 9b821e3230 Add /api/v1/beatmaps Howl 2016-06-08 19:55:52 +0200
  • 155fbabbbc Allow auth through cookie X-Ripple-Token Howl 2016-06-08 18:55:48 +0200
  • ee51b999f1 Allow passing a beatmap_id to BeatmapSetStatus Howl 2016-06-08 18:30:23 +0200
  • e27569261a Update ban_datetime on allowed status change Howl 2016-06-06 12:27:54 +0200
  • 122e2afa1b Don't log message in get_user if it's an ErrNoRows Howl 2016-05-30 19:18:31 +0200
  • ba5a078db3 forgot allowed check Howl 2016-05-29 13:09:36 +0200
  • 0c6237ed01 Use userid rather than username Howl 2016-05-28 23:48:29 +0200
  • fb08a80308 fixes Howl 2016-05-28 20:31:46 +0200
  • 571325e98f Send error logs asynchronously Howl 2016-05-28 20:28:13 +0200
  • 6a374a4f9d Implement get_user_best and get_user_recent in peppyapi Howl 2016-05-28 20:24:39 +0200
  • db323908ac Add in.go Howl 2016-05-28 17:30:18 +0200
  • 0fcb1cc391 diobono Howl 2016-05-26 21:19:00 +0200
  • fde01c6f84 Don't print 0pp scores on std on user/scores/best Howl 2016-05-26 21:13:36 +0200
  • 2638f8be2a .HIDE. ??? Howl 2016-05-22 17:23:44 +0200
  • d5caa1fdc2 Report errors in API to #bunker Howl 2016-05-22 17:11:07 +0200
  • a25512fb96 Add completed status in users/scores/* Howl 2016-05-22 16:22:13 +0200
  • ce739a8ae5 Implement users/scores/recent Howl 2016-05-19 17:31:49 +0200
  • da2a36537e Implement user/scores/best Howl 2016-05-19 17:15:17 +0200
  • 45c67cf9b7 Start implementing get_beatmaps Howl 2016-05-18 18:37:36 +0200
  • de2aeb338b Revert "Fix normalisation not actually happening in users/full" Howl 2016-05-18 18:00:39 +0200
  • 52e1fa09ca Revert "Normalise floats (don't use Inf in JSON)" Howl 2016-05-18 18:00:22 +0200
  • ef14f027b7 Fix normalisation not actually happening in users/full Howl 2016-05-18 17:49:46 +0200
  • 330757ec78 Normalise floats (don't use Inf in JSON) Howl 2016-05-18 17:48:19 +0200
  • 2afc557ef8 peppyapi: replicate behaviour of original API (check for user ID first, then for username) Howl 2016-05-18 17:47:39 +0200
  • 5320c62e17 Be more permissive in UserLookupGET (wildcard both at start and at end of username) Howl 2016-05-17 17:40:30 +0200
  • c86bc1e420 Use precise level in /api/v1/users/full Howl 2016-05-17 17:06:15 +0200
  • a16c196799 Add level in /api/get_user Howl 2016-05-17 17:00:09 +0200
  • 32b9d1e2d5 Escape backslashes in UserLookupGET Howl 2016-05-17 15:35:18 +0200
  • f7559e8cc5 Implement /api/get_match (will return empty array, match data is currently not stored in ripple) Howl 2016-05-15 14:04:59 +0200
  • e043dd9cdf Remove useless println Howl 2016-05-15 13:57:28 +0200
  • d6f67915c5 Start implementing peppyapi; implement /api/get_user Howl 2016-05-15 13:57:04 +0200
  • a939d15779 Force private API keys to have Privileges write, read, read confidential Howl 2016-05-15 07:20:11 +0200
  • 42437bde44 Add user lookup (search for user with only initial part of their username) Howl 2016-05-14 22:43:47 +0200
  • 35fb27e3c1 Add PP in /users/full Howl 2016-05-14 21:27:42 +0200
  • 3942f63446 use querystring in /friends methods. remove useless POST methods in /friends Howl 2016-05-14 21:23:17 +0200
  • 9481de5e4e Merge /badges/:id into /badges Howl 2016-05-14 21:02:05 +0200
  • 4448fcdfdb Update /users/userpage to use querystring parameters Howl 2016-05-14 20:55:42 +0200
  • 5f97315d49 i memi Howl 2016-05-14 20:31:28 +0200
  • 417409030a Fix 500 on tokens/new Howl 2016-05-14 20:18:29 +0200
  • 09582361a3 /users/full now using querystring. /users requests from now on will have an uniform system for getting the user (?id=self | ?id=1337 | ?name=Howl) Howl 2016-05-14 19:51:33 +0200
  • 8114329d38 /users/whatid using querystring param name Howl 2016-05-14 18:52:55 +0200
  • 3a199b8c41 Merge /users/id/:id and /users/name/:name into /users (with querystring params id and name) Howl 2016-05-14 18:32:43 +0200
  • 1b1f2503a2 fuck nyo Howl 2016-04-27 21:03:16 +0200
  • 8dbacc5ed9 add privilege beatmap to privileges.go Howl 2016-04-27 20:25:53 +0200
  • 6936d7932f OOOH RIGHT Howl 2016-04-27 20:18:55 +0200
  • b8c013c0ad go get -u -v -d -xd Howl 2016-04-27 20:17:59 +0200
  • 3782ed3c7c beatmap ranking in API Howl 2016-04-27 20:03:06 +0200
  • 32029d963e We git.zxq.co now Howl 2016-04-19 16:07:27 +0200
  • 7387ed4295 Completely change response structure Howl 2016-04-16 18:05:24 +0200
  • 14d926e31d Just testing ~ Howl 2016-04-12 22:53:56 +0200
  • 4bf5673bd0 Allow PrivilegeViewUserAdvanced owners to see all users' user IDs. Howl 2016-04-12 22:21:39 +0200
  • c4e03dc189 Yay banning people! Howl 2016-04-12 21:41:08 +0200
  • c108da9bb3 implement unmarshaling straight into MethodData Howl 2016-04-12 21:23:02 +0200
  • b29c64023f Ooops, it was status Howl 2016-04-10 23:18:56 +0200
  • 189a0cbb02 Add GET /api/status for Ripple's status page. Howl 2016-04-10 23:14:44 +0200
  • 0418adc8c3 Add login rate limiting Howl 2016-04-10 11:51:34 +0200
  • c5863063f1 Everything is plural except for this, so yeah Howl 2016-04-10 00:07:16 +0200
  • 0b7ca1a370 Well I guess I fucked up a bit o'er there Howl 2016-04-10 00:03:05 +0200
  • 62969581bf Badges are useless on most requests. Howl 2016-04-09 23:58:27 +0200
  • 98c8206946 Fix default message when there's no API key pointing to wrong method Howl 2016-04-09 23:53:49 +0200
  • 98137678eb Remove useless stuff from privileges Howl 2016-04-09 23:50:52 +0200
  • f0e444cdea Auto-update. Or at least, so it should do. Howl 2016-04-09 20:31:50 +0200
  • 92d308879b Add /meta/{up_since,kill} Howl 2016-04-09 18:14:38 +0200
  • b153d45f07 Add roadmap to readme Howl 2016-04-08 19:29:11 +0200
  • c016796303 Friend deletion Howl 2016-04-08 19:23:52 +0200
  • 44d12d2493 Ability to add friends. Also, made a few helper functions. Howl 2016-04-08 19:05:54 +0200
  • 7b82c98352 Don't be a Nyo Howl 2016-04-08 18:18:42 +0200
  • 0d1a298065 Implement JSONP, also save a few bytes by using tabs in indent Howl 2016-04-08 18:06:26 +0200
  • e3cb4aed09 perhaps a memory/performance improvement? by not recreating the same function over and over? maybe. Howl 2016-04-08 17:27:55 +0200
  • ed2778e2cc Graceful restart! Howl 2016-04-07 19:32:48 +0200