Category : Object Pascal

Bahasa Pemrograman Object Pascal

Belajar Membuat Rest Client Menggunakan Lazarus / Free Pascal


CThubC20210606am617 fam17ThursdayUTC17 302021 UTCxUTC2021-06-17T04:17:19+00:0000000030UTC 3004UTC thQ0 1930am30UTC06UTC630: thQ0thUTCAMUTCE[42th22]: C2021Thursday000000066 6202130 f2021000000617: 1054 16239034396k6202146 2021-06-17T04:17:19+00:002021Thursday000000066 'pamThu, 17 Jun 2021 04:17:19 +0000am06000amThursday000000UTC' 176 'f17UTCThursday17 Thursday171930'. UTC04UTC thQ0 1930am30UTC06UTC630 UTCxUTC2021-06-17T04:17:19+00:0000000030UTC17 4am19: 19UTCThursdayUTC2021-06-17T04:17:19+00:0030 pamThu, 17 Jun 2021 04:17:19 +0000am06000amThursday000000UTC fThu, 17 Jun 2021 04:17:19 +0000202106 pamThu, 17 Jun 2021 04:17:19 +0000am06UTC30UTCThu, 17 Jun 2021 04:17:19 +0000 am 404UTCThu, 17 Jun 2021 04:17:19 +0000UTC pamThu, 17 Jun 2021 04:17:19 +0000am066am06UTC = '17am30UTCf2021Thu, 17 Jun 2021 04:17:19 +000006am30' by admin Posted in Object Pascal


Rest Client menggunakan Lazarus / FreePascal sangatlah mudah

Beberapa unit yang dibutuhkan : fpjson, jsonparser, fphttpclient

Misalkan API Server dan metode API ada di http://localhost:3000/sysadm/getcatalog

dengan response dari server berupa JSON

{
    "iserror": 0,
    "total": 1,
    "msg":

readmore