This repository has been archived by the owner on Dec 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
YoungjinJang edited this page Oct 20, 2014
·
1 revision
Welcome to the ShackServer wiki!
from now on, HOME = http://14.63.171.66:8081/tleafstructure
- Request URL : HOME/oauth
- Request Method : GET
- Request Paramater : ( required, value = "appId" )
- Result : TLeaf Login Page.
- Request URL : HOME/api/user
- Request Method : GET
- Request Paramater : ( required, value = "appId" )
- Result : UserInfo Object
- Request URL : HOME/api/user/statistic
- Request Method : GET
- Result : User Application Statistic ( How much logs each application has )
- Request URL : HOME/api/user/file
- Request Method : POST , MULTIPART_FORM_DATA_VALUE
- Request Body : String docId, String docRev, File[] files curl -F "docId=document_id" -F "docRev=document_rev" -F "file=@/Users/susu/Desktop/example.png" -F "file=@/ ...
- Request Header : x-tleaf-application-id , x-tleaf-user-id, x-tleaf-access-token
- Result : Changed Revision of the document
- Request URL : HOME/api/user/file
- Request Method : DELETE
- Request Paramater : String docId, String docRev
- Request Header : x-tleaf-application-id , x-tleaf-user-id, x-tleaf-access-token
- Result : Changed Revision of the document
- Request URL : HOME/api/user/log
- Request Method : GET
- Request Parameter : String rawDataId
- Request Header : x-tleaf-application-id , x-tleaf-user-id, x-tleaf-access-token
- Result : The Specific User Log
- Request URL : HOME/api/user/log
- Request Method : DELETE
- Request Parameter : String rawDataId
- Request Header : x-tleaf-application-id , x-tleaf-user-id, x-tleaf-access-token
- Result : Deleted _rev of the Specific User Log
- Request URL : HOME/api/user/log
- Request Method : POST
- Request BODY : RawData Object ( id, rev is ESSENTIAL )
{
"id" : "document_id",
"rev" : "document_rev",
"data" : { "content" : "I used TLeaf API Today, and it was Awesome!!" , "date" : "2014-10-30T21:03:54+09:00" }
}
- Request Header : x-tleaf-application-id , x-tleaf-user-id, x-tleaf-access-token
- Result : Changed _rev of the user document
- Request URL : HOME/api/user/date
- Request Method : GET
- Request Parameter : String[] date
- Request Header : x-tleaf-application-id , x-tleaf-user-id, x-tleaf-access-token
- Result : The Specific User Log