Page 1 of 1
auto generate json API
Posted: Thu May 14, 2015 2:28 am
by netenken1
IOT are more and more well in the world , so the API also getting more and more important...
Is PHPMaker planning to add "Auto create API" function ?
I am planning to do the job with reading phpmaker XML project file, and Auto generate the RESTful style JSON API for my other client using...
But If PHPMaker planning to do this, How wonderful PHPMaker is it ...^_^
Re: How about auto generate json API?
Posted: Thu Sep 29, 2016 11:20 pm
by gdewey
I vote for that one.. Having a api to consume the information would be like so nice :)
Re: How about auto generate json API?
Posted: Tue Feb 21, 2017 10:18 am
by perci100
I had to create all mine from scratch and every time I make a change its such a pain to update everything, with the size of my application its getting so time consuming I cant keep up. Secure API with Keys would be AMAZING!
Re: How about auto generate json API?
Posted: Fri Feb 24, 2017 12:41 am
by andyrav
GraphQL instead of REST implementation?
Posted: Fri May 05, 2017 12:46 am
by rdt333
Are there any plans to include GraphQL with PHPMaker?
Re: auto generate json API
Posted: Tue Jun 06, 2017 6:42 pm
by btrade
Re: auto generate json API
Posted: Sat Jul 15, 2017 11:59 pm
by edersamaniego
Re: auto generate json API
Posted: Mon Jul 17, 2017 4:01 pm
by WABez
I absolutely vote for this too. Since most of the "features/functionality" are mostly already in PHPMaker, this should be a "fairly easy" addition that will make things so handy, especially on large projects (as someone already mentioned). Generate the JSON API's to a sub folder under the project folder (i.e. project/api), with Secure API with Keys and viola!
This could mean a lot for us users of PHPMaker in terms of time savings, PLEASE PLEASE PLEASE add the JSON API feature.
Re: auto generate json API
Posted: Wed Jul 19, 2017 1:48 pm
by wandschrank
Re: auto generate json API
Posted: Sun Aug 27, 2017 5:02 pm
by ghasembaghi
+1
out project have a rest api for conectiong from other application
for example for table 'user' we have an api for adding/deleting/editing/listing user
i suggest to add a 'Auth_code' field to 'user' table.
when an external application call api with his own aut_code, befor generation output, auth_code should be checked and if user have access to this action, then contiue to output
Re: auto generate json API
Posted: Wed Sep 20, 2017 11:23 am
by Webmaster
PHPMaker 2018 now supports json output for list page. Use <Table>list.php?cmd=json&<search_parameters> to get the json output. <search_parameters> is the default extended search parameters when you enabled extended search / advanced search.
Re: auto generate json API
Posted: Wed Nov 22, 2017 2:12 am
by netenken1
So is that return all the fields in that table ?
Or just return the fields we've "checked the field in <List>" in project
Re: auto generate json API
Posted: Sat Jul 28, 2018 9:06 am
by Webmaster
REST API implemented in v2019.