Merge pull request #139 from matrix-org/erikj/event_context_api

Add event context api swagger
This commit is contained in:
Erik Johnston 2015-12-08 15:24:57 +00:00
commit c4085b0475
4 changed files with 171 additions and 0 deletions

View file

@ -27,6 +27,7 @@ Summary
`Managing History Visibility`_ Required Required Required Required Optional
`Server Side Search`_ Optional Optional Optional Optional Optional
`Server Administration`_ Optional Optional Optional Optional Optional
`Event Context`_ Optional Optional Optional Optional Optional
===================================== ========== ========== ========== ========== ==========
*Please see each module for more details on what clients need to implement.*
@ -41,6 +42,7 @@ Summary
.. _Managing History Visibility: `module:history-visibility`_
.. _Server Side Search: `module:search`_
.. _Server Administration: `module:admin`_
.. _Event Context: `module:event-context`_
Clients
-------

View file

@ -0,0 +1,17 @@
Event Context
=============
.. _module:event-context:
This API returns a number of events that happened just before and after the
specified event. This allows clients to get the context surrounding an event.
Client behaviour
----------------
{{event_context_http_api}}
Security considerations
-----------------------
The server must only return results that the user has permission to see.

View file

@ -36,6 +36,7 @@ groups: # reusable blobs of files when prefixed with 'group:'
- modules/tags.rst
- modules/account_data.rst
- modules/admin.rst
- modules/event_context.rst
title_styles: ["=", "-", "~", "+", "^", "`", "@"]