1
0
-1

I have two different tables in joget linked to each other, one table is for products, and the other table is for product attributes. Product attribute is linked to product table with column product id (foreign key).

I need to create the API for both the tables through joget API builder.

Below are the sample tables.

But for now, it gives me the results of something like this in JSON format.

JSON Format For product table:

JSON format For the Attribute mapping table:

We have tried joining two different tables and generated the API for the same. But it does not meet our requirements. Following is the JSON format for the same.

But I need to create an API that generates the combined data from both lists based on Product id.

I need the output of something like the below for the above two tables.

Is it possible with the API builder Plugin to build a combined API for the two tables?

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi, what approach are you using to join the 2 tables? It appears you want to output nested data. I am not too familiar with the API Builder, but if there is no support for nested data then you might want to request for the developer to enhance or add such a plugin.

        CommentAdd your comment...