Converting a DA Binary Client/Server to Rest/JSON

Hi,

Is there a way to get the server working a Bin and Res/JSON a the same time ?

You can add TROJSONMesssage into server dispatchers.

Is there a way to Generate a OpenAPI 2.0 api spec file, and a Swagger UI documentation interface like in this project ?

for supporting OpenAPI use TROHttpApiDispatcher.

you can find the Adding HttpAPI to a Server (Delphi) article useful.


if above isn’t suitable, you can implement HTTPServer.OnCustomResponseEvent event, as described in Using OnCustomResponseEvent in a ROSDK Server snippet. here you can parse client’s requests and change them.