Welcome Guest, Not a member yet? Register   Sign In
Why RESTful?
#3

(09-10-2021, 02:28 AM)paliz Wrote: 1 Rest ful reaponse is json object

2 restful  controller input data could be formdata or json object

3 restful methods get put post delete

Thanks your Feedback,

Current, In Controller, I use template from FuntionHelper to reaponse json object with my format json, apply all controllers. 

My format json same as: 
Code:
{"Status":200,"Msg":"Connected","Data":{"List":[],"Type":"Export"}}


I don't understant, different between my way vs RESTful (ci4 supports).

To return json results for Mobile App, Which solution should I apply?
Reply


Messages In This Thread
Why RESTful? - by hieuhiti - 09-09-2021, 09:55 PM
RE: Why RESTful? - by paliz - 09-10-2021, 02:28 AM
RE: Why RESTful? - by hieuhiti - 09-10-2021, 05:44 PM
RE: Why RESTful? - by paliz - 09-11-2021, 03:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB