Using relations in API

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
DataCT
Posts: 3
Joined: Tue Jun 19, 2012 10:34 am

Using relations in API

Post by DataCT »

Hi there,

Has anyone been able to request Relations for a given recordId using the API (maybe by altering it)? I desperately need this...

Like to hear from you,

Paul
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Using relations in API

Post by Thorsten »

Hi,

what do you mean with relations?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DataCT
Posts: 3
Joined: Tue Jun 19, 2012 10:34 am

Re: Using relations in API

Post by DataCT »

Relations between records. So, if I view question A, it has to give me 5 related questions, just like in the regular phpMyFaq. Only then through the API.
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Using relations in API

Post by Thorsten »

Hi,

okay, this isn't implemented yet but should be easy to add.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
DataCT
Posts: 3
Joined: Tue Jun 19, 2012 10:34 am

Re: Using relations in API

Post by DataCT »

Could you tell me how I do this?
Thorsten
Posts: 15815
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Using relations in API

Post by Thorsten »

Hi,

well, you have to copy some of the logic from artikel.php into ajaxservice.php... currently I don't have the time to write a complete documentation for this, sorry.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply