The SWAT framework supports the Mockup REST API adapter on the BusinessEntity object level.
To configure a BusinessEntity control to use the Mockup API Data please use the following repository attribute settings on a Business Entity Object:
Attribute | Value |
---|---|
SUBTYPE | MockupCollection |
MockupData | The endpoint to use to request for data. |
JSON response for the MockupData needs to returned as an array of objects:
In SWAT in screen "searchToolbarDialog" there is the following example: