• Tristan Cavelier's avatar
    JIO responses schema modified · f5acb674
    Tristan Cavelier authored
    {
      "id": "document id",
      "attachment": "attachment id", // if {put,get,remove}Attachment command
      "result": "success", // or "error"
      "status": 200,
      "statusText": "Ok",
    
      // if result -> success
      "data": { // if get
        "title": "val",
        "description": "val"
      },
      "data": { // if allDocs
        "total_rows": ...,
        "rows": [...]
      },
      "data": Blob, // if getAttachment
    
      // if result -> error
      "message": ...,
      "reason": ...,
      "error": ...
    }
    f5acb674
IODeferred.js 5.16 KB