App.Data WebApi Examples
In this example, we'll get app-data from the WebApi.
Important: WebApi using [JsonFormatter]
đŸ†• in 2sxc 16
The [JsonFormatter]
has a few effects. It auto-defaults to camelCase (but you can modify this if you need to preserve casing). It will also auto-convert entities to a standard JSON format.
In this example, we'll get app-data from the WebApi.
Click to see the result of a WebApi call with the shared code:
Result
In this example, we'll get app-data from the WebApi.
Click to see the result of a WebApi call with the shared code:
Result
Result
Result
In this example, we'll get app-data from the WebApi which runs a query with a parameter.
Click to see the result of a WebApi call with the shared code:
Result
This is an advanced implementation of the basic examples before. It uses #if
statements to ensure that the same code can run in Dnn and Oqtane.
Click to see the result of a WebApi call with the shared code:
Result
This is an advanced implementation of the basic examples before. It uses #if
statements to ensure that the same code can run in Dnn and Oqtane.
Click to see the result of a WebApi call with the shared code:
Result