atk4 / api

Implementation of RestAPI for Agile Data
https://agiletoolkit.org/
14 stars 12 forks source link

What about a relational table JOINS and its data? anything? #9

Open rapgithub opened 6 years ago

rapgithub commented 6 years ago

I have many relational tables and I want to retrieve all relational tables that belongs to the one I am pulling the information I tried many things to try to show the relational tables using the API but do not find any hook for it...

for instance show all clientes and clientes can have many addresses and groups... I want to show the client with the addresses and group he/she belongs...

One clear example will be: I have a post table that has comments (made by users) and the posts can have tags.

how can I join these tables for output with this API? is there any solution for this?

Appreciate any info thanks

DarkSide666 commented 6 years ago

Well. You can do that with multiple API calls I guess.

rapgithub commented 5 years ago

well API Crud has implemented this relationship between relational tables so I can make one call to bring all tables in relation... that will be nice to implement here too...

check here

https://github.com/mevdschee/php-crud-api

DarkSide666 commented 5 years ago

Sure it would be nice :)