Hi !

Hi !

I'm trying to build a simple REST application with Delphi 10 Seattle. For this purpose I'm using the FMX framework as I'm targeting multiple platforms (Win + Android).

REST services are hosted on a glassfish server. JSON is used for data exchange.
Please note that I've have no experience with REST services...

Here is the WADL



http://192.168.100.198:8080/CRMTest/webresources/application.wadl?detail=true" />





http://192.168.100.198:8080/CRMTest/webresources/">







































Here is how I've proceed :
- Adding a TFDMemTable
- Adding a TGrid
- Adding a TRESTClient and setting it's baseURL to http://192.168.100.198:8080/CRMTest
- Adding a TRESTRequest and setting it's resource to "crm.produit"
- Adding a TRESTResponse
- Adding a TRESTResponseDataSetAdapter and setting its responseJSon and Dataset properties
- "Livebinding" TGrid and TFDMemtable

Data is correctly displayed in my grid but I've no clue how to send modifications (PUT) and new records (POST) to the REST service.

Can someone helps me on this task ?
Thank you !

Comments