Hello everyone, I have built a Rest API according to the following example: https://www.outsystems.com/learn/lesson/1853/exposing-application-data-using-rest-get/?_gl=1*1jharv3*_ga*MTkxODQ2MTk5My4xNjE0MTY1MTQ1*_ga_ZD4DTMHWR2*MTYyMDM2Nzg0MS4zOS4xLjE2MjAzNzI5NDIuNDc.
In principle, everything works.My database structure looks like this:
To output the content of Sample database via the Rest API, I have created the following structure SampleAPI.
How can I make it so that, for example, not only the ID for EquipmentAID is output via the Rest API, but also the information stored in the Equipment database (name, type, manufacturer)?
Thanks and best regards,Michael
Thank you very much for your answers. In the end, I chose a different solution.Step-1: Add the source "Equipment" and "Decal" to my Aggregate in the logic.
Now everything works as expected.
Hi Michael,
instead of using an attribute of data type Equipment Identifier like EquipmentAID or EquipmentCID, you should set the data type as Equipment entity like in this example below:
Regards
Hi,
1)Create action
2)Create local variable of type sample.
3)use Assignment widget, map structure with local variable .
4) use create sample action.
Hope this works.
thanks.