Mapping between more than one object

Hello,

Can you please install the Demo custom APIs module from the App store ?

You will find the DemoAPI1 example of a Mapped REST webservice.

In the Settings field, the JSON describes the mapping of your API. If you wish to add the Order object and it’s linked Product, you need to add it’s definition to the JSON.

Example :

{
	"ping": true,
	"objects": [
		[...]
		{
			"name": "orders",
			"fields": [
				{
					"field": "demoOrdNumber",
					"name": "number",
					"desc": "Order number"
				},
				{
					"field": "demoOrdPrdId.demoPrdName",
					"name": "productName",
					"desc": "Prodcut name"
				}
			],
			"object": "DemoOrder",
			"desc": "Orders"
		}
		[...]
	],
	"name": "Custom mapped API",
	"embedLinks": true,
	"version": "v1",
	"spec": 3,
	"desc": "This is a custom **mapped** API of the demo application for the following business objects:\n\n- Suppliers\n- Products\n- Orders\n- Statistics"
}

Does this help ?