summary refs log tree commit diff
path: root/synapse/rest/client/v1/base.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Unify v1 and v2 REST client APIs (#5226)Amber Brown2019-06-031-65/+0
|
* Drop support for v2_alpha API prefix (#5190)Richard van der Hoff2019-05-151-4/+4
|
* Make auth & transactions more testable (#3499)Amber Brown2018-07-141-1/+1
|
* run isortAmber Brown2018-07-091-6/+4
|
* Burminate v1authAdrian Tschira2018-04-301-1/+5
| | | | | | | | | | | | | | | | | | This closes #2602 v1auth was created to account for the differences in status code between the v1 and v2_alpha revisions of the protocol (401 vs 403 for invalid tokens). However since those protocols were merged, this makes the r0 version/endpoint internally inconsistent, and violates the specification for the r0 endpoint. This might break clients that rely on this inconsistency with the specification. This is said to affect the legacy angular reference client. However, I feel that restoring parity with the spec is more important. Either way, it is critical to inform developers about this change, in case they rely on the illegal behaviour. Signed-off-by: Adrian Tschira <nota@notafile.com>
* Clean transactions based on time. Add HttpTransactionCache tests.Kegan Dougal2016-11-141-1/+1
|
* Review commentsKegan Dougal2016-11-111-1/+2
|
* Store Promise<Response> instead of Response for HTTP API transactionsKegan Dougal2016-11-101-2/+2
| | | | | | | | | | | | | | | | | | This fixes a race whereby: - User hits an endpoint. - No cached transaction so executes main code. - User hits same endpoint. - No cache transaction so executes main code. - Main code finishes executing and caches response and returns. - Main code finishes executing and caches response and returns. This race is common in the wild when Synapse is struggling under load. This commit fixes the race by: - User hits an endpoint. - Caches the promise to execute the main code and executes main code. - User hits same endpoint. - Yields on the same promise as the first request. - Main code finishes executing and returns, unblocking both requests.
* Dont invoke get_handlers fromClientV1RestServletErik Johnston2016-08-121-1/+0
| | | | | | hs.get_handlers() can not be invoked from split out processes. Moving the invocations down a level means that we can slowly split out individual servlets.
* Type annotationsRichard van der Hoff2016-07-191-0/+4
| | | | | Add some type annotations to help PyCharm (in particular) to figure out the types of a bunch of things.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Update endpoints to reflect current specDaniel Wagner-Hall2015-12-021-3/+4
|
* Host /unstable and /r0 versions of r0 APIsDaniel Wagner-Hall2015-12-011-2/+8
|
* 1) Pushers are now associated with an access tokenDavid Baker2015-03-241-1/+1
| | | | 2) Change places where we mean unauthenticated to 401, not 403, in C/S v2: hack so it stays as 403 in v1 because web client relies on it.
* Extract the client v1 base RestServlet to a separate classMark Haines2015-01-231-34/+6
|
* Move rest APIs back under the rest directoryMark Haines2015-01-221-0/+80