serenity-is / Serenity

Business Apps Made Simple with Asp.Net Core MVC / TypeScript
https://serenity.is
MIT License
2.59k stars 796 forks source link

Add Json Return Type to DynamicScripts #6472

Closed osmanaslancan closed 2 years ago

osmanaslancan commented 2 years ago

example LookupScript

{
    "items": [
        {
            "EmployeeID": 2,
            "FullName": "Andrew Fuller"
        },
        {
            "EmployeeID": 9,
            "FullName": "Anne Dodsworth"
        },
    ],
    "idField": "EmployeeID",
    "textField": "FullName"
}

example RemoteData

{
    "Username": "admin",
    "DisplayName": "admin",
    "IsAdmin": true,
    "Permissions": {
        "Administration:Security": true,
        "Administration:Translation": true,
    }
}

example RegisteredScripts

{
    "Lookup.Northwind.Shipper": "637949582408073162",
    "Columns.Northwind.Shipper": "637949582408073173",
}