-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] move API docs from wiki to Sphinx
- Loading branch information
1 parent
4482f19
commit fa3f23f
Showing
26 changed files
with
1,214 additions
and
1,390 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
def setup(app): | ||
# enable Pygments json lexer | ||
try: | ||
import pygments | ||
if pygments.__version__ >= '1.5': | ||
# use JSON lexer included in recent versions of Pygments | ||
from pygments.lexers import JsonLexer | ||
else: | ||
# use JSON lexer from pygments-json if installed | ||
from pygson.json_lexer import JSONLexer as JsonLexer | ||
except ImportError: | ||
pass # not fatal if we have old (or no) Pygments and no pygments-json | ||
else: | ||
app.add_lexer('json', JsonLexer()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
API Changes | ||
=========== | ||
|
||
This page lists changes to the Advanced API. The current version is 2.11. This versioning scheme has been introduced in [1]. | ||
|
||
Version 2.11 | ||
------------ | ||
|
||
added Download All subscriptions | ||
|
||
Version 2.10 | ||
------------ | ||
|
||
added Authentication API [2] | ||
added Device Synchronization API [3] | ||
added Podcast Lists API [4] | ||
added include_actions parameter to Device Update API [5] | ||
|
||
|
||
Version 2.9 | ||
----------- | ||
|
||
added XML format to some Simple API requests [6] [7] | ||
|
||
|
||
Version 2.8 | ||
----------- | ||
|
||
added JSONP as a format to Simple API requests [8] | ||
|
||
|
||
Version 2.7 | ||
----------- | ||
|
||
added API Parametrization | ||
|
||
|
||
Version 2.6 | ||
----------- | ||
|
||
added "released" to Retrieving Episode Data and Listing Favorite Episodes | ||
|
||
|
||
Version 2.5 | ||
----------- | ||
added "Subscribers Last Week" to Retrieving Podcast Data [9] | ||
|
||
|
||
Version 2.4 | ||
----------- | ||
|
||
added Saving a Setting [10] | ||
added Retrieving Settings | ||
added Listing Favorite Episodes | ||
|
||
|
||
Version 2.3 | ||
----------- | ||
|
||
added Retrieving Updates for a Device | ||
|
||
|
||
Version 2.2 | ||
----------- | ||
|
||
added Retrieving Top Tags | ||
added Retrieving Podcasts of a Tag | ||
added Retrieving Podcast Data | ||
added Retrieving Episode Data | ||
|
||
|
||
Version 2.1 | ||
----------- | ||
|
||
added aggregated=true to Retrieving episode actions [11] | ||
|
||
|
||
Version 2.0 | ||
----------- | ||
|
||
added Add/remove subscriptions | ||
added Retrieving subscription changes | ||
added Uploading episode actions | ||
added Retrieving episode actions | ||
added (Re)naming devices and setting the type | ||
added Getting a list of devices | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,36 @@ | ||
Authentication API | ||
================== | ||
|
||
Login / Verify Login | ||
-------------------- | ||
|
||
.. http:post:: /api/2/auth/(username)/login.json | ||
:synopsis: verify the login status | ||
|
||
* since 2.10 | ||
|
||
Log in the given user for the given device via HTTP Basic Auth. | ||
|
||
:param username: the username which should be logged in | ||
:status 401: If the URL is accessed without login credentials provided | ||
:status 400: If the client provides a cookie, but for a different username than the one given | ||
:status 200: the response headers have a ``sessionid`` cookie set. | ||
|
||
The client can use this URL with the cookie in the request header to check | ||
if the cookie is still valid. | ||
|
||
|
||
Logout | ||
------ | ||
|
||
.. http:post:: /api/2/auth/(username)/logout.json | ||
:synopsis: logout | ||
|
||
* since 2.10 | ||
|
||
Log out the given user. Removes the session ID from the database. | ||
|
||
:param username: the username which should be logged out | ||
:status 200: if the client didn't send a cookie, or the user was | ||
successfully logged out | ||
:status 400: if the client provides a cookie, but for a different username than the one given |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Client Parametrization | ||
====================== | ||
|
||
The client configuration file is located at | ||
http://gpodder.net/clientconfig.json and contains information that clients | ||
should retrieve before making requests to the APIs. | ||
|
||
If a client cannot retrieve and process this file (either temporarily or | ||
permanently), it can assume the default values provided below. However, | ||
the URLs in the file might reflect changed URLs and/or mirror servers. If a | ||
client decides to permanently ignore this file, it might hit an outdated URL | ||
or an overloaded server. | ||
|
||
|
||
Commented Example | ||
----------------- | ||
|
||
.. code-block:: json | ||
{ | ||
"mygpo": { | ||
"baseurl": "http://gpodder.net/" | ||
} | ||
"mygpo-feedservice": { | ||
"baseurl": "http://mygpo-feedservice.appspot.com/" | ||
} | ||
"update_timeout": 604800, | ||
} | ||
* ``mygpo/baseurl``: URL to which the gpodder.net API Endpoints should be appended | ||
* ``mygpo-feedservice/baseurl``: Base URL of the gpodder.net feed service | ||
* ``update_timeout``: Time in seconds for which the values in this file can be considered valid. |
Oops, something went wrong.