Update documentation_eng.md
This commit is contained in:
parent
7440fa73e0
commit
fdf44e8e08
@ -4,7 +4,7 @@
|
||||
|
||||
Methods | URL | Request | Response
|
||||
------------ | ------------ | ------------ | ------------
|
||||
**GET**: <br /> A general way to get data.<br /> You can use dev tools to make edits in a web browser. | base_url/get/ | {<br /> TableName:{<br /> //Add contiditions here.<br /> }<br />} <br /> <br /> Eg. To get a Moment with `id = 235`:<br />{<br /> "Post":{<br /> "id":235<br /> }<br />} | {<br /> TableName:{<br /> ...<br /> },<br /> "code":200,<br /> "msg":"success"<br />}<br />Eg.<br />{<br /> "Moment":{<br /> "id":235,<br /> "userId":38710,<br /> "content":"APIJSON,let interfaces and documents go to hell !"<br /> },<br /> "code":200,<br /> "msg":"success"<br /> }
|
||||
**GET**: <br /> A general way to get data.<br /> You can use dev tools to make edits in a web browser. | base_url/get/ | {<br /> TableName:{<br /> //Add contiditions here.<br /> }<br />} <br /> <br /> Eg. To get a Moment with `id = 235`:<br />{<br /> "Moment":{<br /> "id":235<br /> }<br />} | {<br /> TableName:{<br /> ...<br /> },<br /> "code":200,<br /> "msg":"success"<br />}<br />Eg.<br />{<br /> "Moment":{<br /> "id":235,<br /> "userId":38710,<br /> "content":"APIJSON,let interfaces and documents go to hell !"<br /> },<br /> "code":200,<br /> "msg":"success"<br /> }
|
||||
**HEAD**: <br /> A general way to get counts.<br /> You can use dev tools to make edits in a web browser. | base_url/head/ | {<br /> TableName:{<br /> …<br /> }<br /> } <br /> {…} are conditions. <br /><br /> Eg. Get the number of Moments posted by the user with `id = 38710`:<br />{<br /> "Moment":{<br /> "userId":38710<br /> }<br />} | {<br /> TableName:{<br /> "code":200,<br /> "msg":"success",<br /> "count":10<br /> },<br /> "code":200,<br /> "msg":"success"<br />} <br /> Eg.<br />{<br /> "Moment":{<br /> "code":200,<br /> "msg":"success",<br /> "count":10<br /> },<br /> "code":200,<br /> "msg":"success"<br />}
|
||||
**GETS**: <br /> Get data with high security and confidentiality.<br /> Eg. bank accounts, birth date. | base_url/gets/ | You need to add ` "tag": tag` with the same level of `Moment:{}`. Others are the same as **GET**. | Same as **GET**.
|
||||
**HEADS**: <br /> Get counts of confidential data(eg. bank account).| base_url/heads/ | You need to add `"tag": tag` with the same level of `Moment:{}`. Others are the same as **HEAD**. | Same as **HEAD**.
|
||||
|
Loading…
Reference in New Issue
Block a user