Skip to content

Commit b85add7

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 620a0fe + 06c264f commit b85add7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ request.AddParameter("name", "value"); // adds to POST or URL querystring based
6666
request.AddUrlSegment("id", "123"); // replaces matching token in request.Resource
6767
6868
// add parameters for all properties on an object
69-
request.AddJsonObject(@object);
69+
request.AddObject(@object);
7070

7171
// or just whitelisted properties
7272
request.AddObject(object, "PersonId", "Name", ...);

RestSharp/IRestRequest.cs

+8
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,14 @@ public interface IRestRequest
353353
/// <returns></returns>
354354
IRestRequest AddUrlSegment(string name, string value);
355355

356+
/// <summary>
357+
/// Shortcut to AddParameter(name, value, UrlSegment) overload
358+
/// </summary>
359+
/// <param name="name">Name of the segment to add</param>
360+
/// <param name="value">Value of the segment to add</param>
361+
/// <returns></returns>
362+
IRestRequest AddUrlSegment(string name, object value);
363+
356364
/// <summary>
357365
/// Shortcut to AddParameter(name, value, QueryString) overload
358366
/// </summary>

0 commit comments

Comments
 (0)