This's DataSet-Serialize adapter for RESTRequest4Delphi. Allows loading a DataSet with the content of a request.
Buy our official training by clicking here! We created a channel on Telegram for questions and support:
- DataSet-Serialize - JSON to DataSet and DataSet to JSON converter for Delphi and Lazarus (FPC)
- RESTRequest4Delphi - API to consume REST services written in any programming language with support to Lazarus and Delphi
Installation is done using the boss install
command:
boss install github.com/viniciussanchez/dataset-serialize-adapter-restrequest4delphi
If you choose to install manually, simply add the following folders to your project, in Project > Options > Building > Delphi Compiler > Search path
../dataset-serialize-adapter-restrequest4delphi/src
This adapter is compatible with projects developed in:
- Delphi
- Lazarus
uses RESTRequest4D, DataSet.Serialize.Adapter.RESTRequest4D;
begin
TRequest.New.BaseURL('http://localhost:8888/users')
.Adapters(TDataSetSerializeAdapter.New(mtUsers, 'my-optional-root-element'))
.Accept('application/json')
.Get;
end;
dataset-serialize-adapter-restrequest4delphi
is free and open-source adapter licensed under the MIT License.