Hi Everybody,
I'm using TMS XData\Demos\Swagger, and I put a new service implementation
[Route('users-get')]
[HttpGet] function GetUsers(group_id: TGUID ):TList<T_User>;
Reponse is:
{
"value": [
{
"id": "string",
"FirstName": "string",
"LastName": "string"
}
]
}
I there any other type instead if TList that will return the response like:
[
{
"id": "string",
"FirstName": "string",
"LastName": "string"
}
]
Or any event that I can Parse the response text and send it correctly (as above)?
Also is there any way to use FirstName instead of FFirstName in class definitions?
[Entity, Automapping]
T_User = class
strict private
Fid: TGUID;
public
FFirstName : string; //should be FirstName but output trim 'F' in the front of var name;
LastName : string;
property Id: TGUID read FId write FId;
end;
Thanks,
Mihai