File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1952,7 +1952,7 @@ func (c *Client) SetPathParams(params map[string]string) *Client {
1952
1952
// client.SetRawPathParam("path", "groups/developers")
1953
1953
//
1954
1954
// Result:
1955
- // URL - /v1/users/{userId }/details
1955
+ // URL - /v1/users/{path }/details
1956
1956
// Composed URL - /v1/users/groups/developers/details
1957
1957
//
1958
1958
// It replaces the value of the key while composing the request URL.
Original file line number Diff line number Diff line change @@ -766,7 +766,7 @@ func (r *Request) SetResponseBodyUnlimitedReads(b bool) *Request {
766
766
// client.R().SetPathParam("path", "groups/developers")
767
767
//
768
768
// Result:
769
- // URL - /v1/users/{userId }/details
769
+ // URL - /v1/users/{path }/details
770
770
// Composed URL - /v1/users/groups%2Fdevelopers/details
771
771
//
772
772
// It replaces the value of the key while composing the request URL.
@@ -805,16 +805,16 @@ func (r *Request) SetPathParams(params map[string]string) *Request {
805
805
// SetRawPathParam method sets a single URL path key-value pair in the
806
806
// Resty current request instance without path escape.
807
807
//
808
- // client.R().SetPathParam ("userId", "[email protected] ")
808
+ // client.R().SetRawPathParam ("userId", "[email protected] ")
809
809
//
810
810
// Result:
811
811
// URL - /v1/users/{userId}/details
812
812
// Composed URL - /v1/users/[email protected] /details
813
813
//
814
- // client.R().SetPathParam ("path", "groups/developers")
814
+ // client.R().SetRawPathParam ("path", "groups/developers")
815
815
//
816
816
// Result:
817
- // URL - /v1/users/{userId }/details
817
+ // URL - /v1/users/{path }/details
818
818
// Composed URL - /v1/users/groups/developers/details
819
819
//
820
820
// It replaces the value of the key while composing the request URL.
You can’t perform that action at this time.
0 commit comments