Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/viniciussanchez/dataset-serialize-adapter-restrequest4delphi

DataSet-Serialize adapter for RESTRequest4Delphi
https://github.com/viniciussanchez/dataset-serialize-adapter-restrequest4delphi

adapter api client delphi lazarus request rest restrequest4delphi rr4d

Last synced: 10 days ago
JSON representation

DataSet-Serialize adapter for RESTRequest4Delphi

Awesome Lists containing this project

README

        

# DataSet-Serialize Adapter for RESTRequest4Delphi
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:




## ⭕ Prerequisites
* [**DataSet-Serialize**](https://github.com/viniciussanchez/dataset-serialize) - JSON to DataSet and DataSet to JSON converter for Delphi and Lazarus (FPC)
* [**RESTRequest4Delphi**](https://github.com/viniciussanchez/RESTRequest4Delphi) - API to consume REST services written in any programming language with support to Lazarus and Delphi

## ⚙️ Installation
Installation is done using the [`boss install`](https://github.com/HashLoad/boss) command:
``` sh
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
```

## ✔️ Compatibility
This adapter is compatible with projects developed in:
- [X] Delphi
- [X] Lazarus

## ⚡️ Quickstart
```delphi
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;
```

## ⚠️ License
`dataset-serialize-adapter-restrequest4delphi` is free and open-source adapter licensed under the [MIT License](https://github.com/viniciussanchez/dataset-serialize-adapter-restrequest4delphi/blob/main/LICENSE).