#1 2015-07-14 08:50:02

turrican
Member
From: Barcelona
Registered: 2015-06-05
Posts: 94
Website

Make TSQLHttpClient with ASP.NET WebApi

Hi,

I have an ASP.NET REST WebAPI and I would like use mORMot Framework to consume these.

I can publish a public WebAPI with some models to make tests if you want.

Offline

#2 2015-07-14 09:39:53

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,205
Website

Re: Make TSQLHttpClient with ASP.NET WebApi

I think mORMot won't be the best candidate for an abstract REST client.
It is a whole client/server stack.

What you can do is use some bricks of the framework:
- use SynCrtSock for the HTTP client access
- use SynCommons' TDocVariantData, or record/class JSON serialization for the content
- use SynMustache to generate the Delphi client code from the REST API information

Offline

Board footer

Powered by FluxBB