auto generate json API

auto generate json API

Postby netenken1 » Thu May 14, 2015 2:28 am

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 ...^_^
netenken1
 
Posts: 59
Joined: Tue Dec 04, 2012 1:48 am

Re: How about auto generate json API?

Postby gdewey » Thu Sep 29, 2016 11:20 pm

I vote for that one.. Having a api to consume the information would be like so nice :)
gdewey
 
Posts: 1
Joined: Thu Sep 29, 2016 11:16 pm

Re: How about auto generate json API?

Postby perci100 » Tue Feb 21, 2017 10:18 am

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!
perci100
 
Posts: 53
Joined: Wed Sep 24, 2014 5:45 am

Re: How about auto generate json API?

Postby andyrav » Fri Feb 24, 2017 12:41 am

+1
andyrav
 
Posts: 315
Joined: Wed Feb 25, 2015 6:38 pm

GraphQL instead of REST implementation?

Postby rdt333 » Fri May 05, 2017 12:46 am

Are there any plans to include GraphQL with PHPMaker?
rdt333
 
Posts: 1
Joined: Fri May 05, 2017 12:40 am

Re: auto generate json API

Postby btrade » Tue Jun 06, 2017 6:42 pm

+1
btrade
 
Posts: 209
Joined: Wed Jun 04, 2014 12:09 am

Re: auto generate json API

Postby edersamaniego » Sat Jul 15, 2017 11:59 pm

+1
edersamaniego
 
Posts: 13
Joined: Wed Nov 28, 2012 2:15 am

Re: auto generate json API

Postby WABez » Mon Jul 17, 2017 4:01 pm

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.
WABez
 
Posts: 117
Joined: Wed Nov 21, 2012 1:38 am

Re: auto generate json API

Postby wandschrank » Wed Jul 19, 2017 1:48 pm

+1
wandschrank
 
Posts: 2
Joined: Tue Apr 01, 2014 8:10 pm

Re: auto generate json API

Postby ghasembaghi » Sun Aug 27, 2017 5:02 pm

+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
ghasembaghi
 
Posts: 196
Joined: Sat Dec 01, 2012 6:49 pm

Re: auto generate json API

Postby Webmaster » Wed Sep 20, 2017 11:23 am

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.
Webmaster
 
Posts: 10730
Joined: Fri Aug 06, 2004 5:59 pm

Re: auto generate json API

Postby netenken1 » Wed Nov 22, 2017 2:12 am

So is that return all the fields in that table ?
Or just return the fields we've "checked the field in <List>" in project
netenken1
 
Posts: 59
Joined: Tue Dec 04, 2012 1:48 am


Return to Feature Requests (PHPMaker)