Skip to content

Releases: andeerc/REST4D

v1.4

Choose a tag to compare

@andeerc andeerc released this 02 Sep 12:55

Added query param

v1.3

Choose a tag to compare

@andeerc andeerc released this 23 Jul 12:39
  • Added authentication OAuth2

Sample:

  TREST4D.New
    .OAuth2
      .AuthorizationEndpoint('http://localhost:4000/')
      .AccessTokenEndpoint('auth')
      .ClientID('username')
      .ClientSecret('******')
    .&End
    .OnAuthenticate(
      procedure(AJson: String)
      var
        jv: TJSONValue;
      begin
        jv := TJSONObject.ParseJSONValue(AJson);
        try
          jv.TryGetValue('acess_token', FToken);
        finally
          jv.DisposeOf;
        end;
      end)
    .OnAuthenticateRaiseException(
      procedure(E: Exception)
      begin
        raise Exception.Create(E.Message);
      end)
    .Authenticate
    .BaseUrl('http://localhost:4000/')
    .Resource('ping')
    .Bearer(FTOken)
    .Post()
  • Added TimeOut function in IRESTRequest

v1.2

Choose a tag to compare

@andeerc andeerc released this 28 Jun 11:08

Added streams in body

v1.1

Choose a tag to compare

@andeerc andeerc released this 18 Jun 21:09

Added async request

v1.0

Choose a tag to compare

@andeerc andeerc released this 10 Jun 10:54
updt