RESTful API Support |
(05-21-2021, 09:42 AM)akinuri Wrote: The problem is with the validation. There doesn't seem to be a way/method to set the data manually. There's the withRequest() method, but I don't understand how it's useful. It sets the data directly from the raw input. It's not parsed. How's that going to work? It doesn't. I'd like to be able to set the validation data manually, so I can pass the data that I parsed from the raw input. You can. It is implicitly mentioned in the documentation: Library Reference » Validation Quote:$validation->run($data, 'signup'); Also it is worth looking at the run() method's phpdoc: PHP Code: /** As of the rest of your complaints: CI4 is not a complete rewrite of CI3, and as such it has lots of legacy code, so I understand that you find room to improve. With that being said, it is an open source and free software, and everyone is welcome to contribute to it. Better together! |
Messages In This Thread |
RESTful API Support - by akinuri - 05-21-2021, 09:42 AM
RE: RESTful API Support - by InsiteFX - 05-21-2021, 11:59 AM
RE: RESTful API Support - by akinuri - 05-21-2021, 01:37 PM
RE: RESTful API Support - by InsiteFX - 05-21-2021, 08:35 PM
RE: RESTful API Support - by bivanbi - 05-21-2021, 10:19 PM
RE: RESTful API Support - by paliz - 05-22-2021, 03:57 AM
RE: RESTful API Support - by MGatner - 05-22-2021, 05:08 AM
RE: RESTful API Support - by akinuri - 05-22-2021, 07:20 AM
RE: RESTful API Support - by MGatner - 05-23-2021, 04:54 AM
RE: RESTful API Support - by MGatner - 05-23-2021, 04:58 AM
RE: RESTful API Support - by akinuri - 05-25-2021, 12:49 PM
|