You are not logged in.
Pages: 1
Hi guys,
When retrieving the data in any (ORM Related) method that return JSON...
Are possible to generate TtimeLog type fields in ISO 8601 format instead of integer?
Example:
{
"Name": "The Name",
CreatedAt: "2018-02-02T12:57:17+00:00",
ModifiedAt: "2018-02-02T12:57:17+00:00"
}
Last edited by macfly (2018-03-02 21:50:41)
Offline
Ok thanks por reply.
Offline
The idea is not to directly publish the ORM, but to define an interface-based service, and DTO records and arrays, to provide the clients with the data in the expected format.
You will gain the abstraction of services and interfaces, and better security, since with the ORM you can query almost whatever you want, whereas with a service, your code is the master of the query.
Online
I use both ways.
But in this particular project the service is consumed exclusively by a delphi application, so I am not using services in this case.
But using services the JSON format will be the same, correct?
What you suggest would be to get the result in DocVariant. So do the parsing - in the service method - with the conversions and return formatted?
Offline
Pages: 1