From 8ce6afc4ac0014de6e4235579abb8c1168d7cff0 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 7 Jun 2016 18:13:10 +0200 Subject: doc/api.md: Update references to endpoint documentation Signed-off-by: Florian Pritz --- doc/api.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/doc/api.md b/doc/api.md index d781346eb..8728f3b8f 100644 --- a/doc/api.md +++ b/doc/api.md @@ -95,8 +95,10 @@ These are the most common errors that can be returned by any API call. ## Endpoints -All return values below assume success unless stated otherwise and are the -content of the `data` field mentioned above. +Documentation for specific endpoints can be found in `./doc/api/`: + +* [Documentation for the /file/ endpoints](api/file.md) +* [Documentation for the /user/ endpoints](api/user.md) ```javascript // General definitions @@ -114,13 +116,15 @@ upload-id: String; // General success response responseSuccess = { "status": "success", - "data": object or array, + "data": object or array, // Differs per endpoint. Refer to the specific endpoint documentation. } ``` -For the examples set the following variables in your shell. Please note that -they and their values will show up in your shell history and in top/ps if used. -Be careful on untrusted systems. +### Examples + +For the examples given in the endpoint documentation, set the following +variables in your shell. Please note that they and their values will show up in +your shell history and in top/ps if used. Be careful on untrusted systems. ```bash apikey="anApiKey" -- cgit v1.2.3-24-g4f1b