My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
HowItWorks  
One-sentence summary of this page.
Updated Dec 23, 2010 by dziki.dz...@gmail.com

Introduction

API for dood.pl defines communication based on REST methodology. This document do not assume any specific server (or client) implementation, but we try to ensure that API works correctly on:

Convention

According to REST convention all requests are stated in the following form

/object/action/

All responses have JSON format. Please refer to Response Structure for details about data exchange structures.

Pre-Assumptions:

  1. If error code is 0 than HTTP response has code 200. Otherwise it may be different than 200. We try to support standard HTTP error codes and don't change their meanings.
  2. All sessions must start with /session/start/ for retriving session_key.
  3. All requests except those mentioned above must contain session_key as parameter. Otherwise 401 HTTP error code is returned (this error is also returned if session expires).
  4. All retrived structures have header. Please refer to header structure.

In following documentation we assume those conditions and we may not include them in each structure or request.

Powered by Google Project Hosting