Hi Everybody,
I'm using TMS XData\Demos\Swagger, and I put a new service implementation
and I want to remove $expand and $id from request/response.
function TAVSessionService.session_new(activityId: TGUID): TActivity;
begin
Result := TActivity.Create;
Result.Name := TXDataOperationContext.Current.Request.RemoteIp;
Result.id := activityId;
end;
with definition:
type
[Entity, Automapping]
TCamera = class
strict private
FId: TGUID;
public
name: string;
property Id: TGUID read FId write FId;
end;
[Entity, Automapping ]
TActivity = class
strict private
Fid: TGUID;
public
name: string;
cameras: TList<TCamera>;
property id: TGUID read Fid write Fid;
end;
Is there any way to remove $expand from request and $id from answer in swagger display/ specialy $id removal on response.
Picture below:
Thanks,
Mihai