You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**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 /> }
293
+
**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 is the real-time coding-free, powerful and secure ORM"<br /> },<br /> "code":200,<br /> "msg":"success"<br /> }
294
294
**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 />}
295
295
**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**.
296
296
**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**.
297
-
**POST**: <br /> Add new data. | base_url/post/ | {<br /> TableName:{<br /> …<br /> },<br /> "tag":tag<br />} <br /> The id in {...} is generated automatically when table is built and can’t be set by the user. <br /><br />Eg. A user with `id = 38710` posts a new Moment:<br />{<br /> "Moment":{<br /> "userId":38710,<br /> "content":"APIJSON,let interfaces and documents go to hell !"<br /> },<br /> "tag":"Moment"<br />} | {<br /> TableName:{<br /> "code":200,<br /> "msg":"success",<br /> "id":38710<br /> },<br /> "code":200,<br /> "msg":"success"<br />}<br />Eg.<br />{<br /> "Moment":{<br /> "code":200,<br /> "msg":"success",<br /> "id":120<br /> },<br /> "code":200,<br /> "msg":"success"<br />}
298
-
**PUT**: <br /> Make changes to a specific item.<br /> Only change the part sent to server. | base_url/put/ | {<br /> TableName:{<br /> "id":id,<br /> …<br /> },<br /> "tag":tag<br />} <br /> You can also add multiple id as `id{}`.<br /><br />Eg. Make changes to Moment's content with id= 235:<br />{<br /> "Moment":{<br /> "id":235,<br /> "content":"APIJSON,let interfaces and documents go to hell !"<br /> },<br /> "tag":"Moment"<br />} | Same as **POST**.
297
+
**POST**: <br /> Add new data. | base_url/post/ | {<br /> TableName:{<br /> …<br /> },<br /> "tag":tag<br />} <br /> The id in {...} is generated automatically when table is built and can’t be set by the user. <br /><br />Eg. A user with `id = 38710` posts a new Moment:<br />{<br /> "Moment":{<br /> "userId":38710,<br /> "content":"APIJSON is the real-time coding-free, powerful and secure ORM"<br /> },<br /> "tag":"Moment"<br />} | {<br /> TableName:{<br /> "code":200,<br /> "msg":"success",<br /> "id":38710<br /> },<br /> "code":200,<br /> "msg":"success"<br />}<br />Eg.<br />{<br /> "Moment":{<br /> "code":200,<br /> "msg":"success",<br /> "id":120<br /> },<br /> "code":200,<br /> "msg":"success"<br />}
298
+
**PUT**: <br /> Make changes to a specific item.<br /> Only change the part sent to server. | base_url/put/ | {<br /> TableName:{<br /> "id":id,<br /> …<br /> },<br /> "tag":tag<br />} <br /> You can also add multiple id as `id{}`.<br /><br />Eg. Make changes to Moment's content with id= 235:<br />{<br /> "Moment":{<br /> "id":235,<br /> "content":"APIJSON is the real-time coding-free, powerful and secure ORM"<br /> },<br /> "tag":"Moment"<br />} | Same as **POST**.
0 commit comments