Skip to content

Commit ee328c9

Browse files
committed
Make it wider
1 parent 6b3bd0b commit ee328c9

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

docs/.vuepress/styles/index.scss

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
:root {
2+
--content-width: 940px;
3+
--homepage-width: 1060px;
4+
}

docs/.vuepress/styles/palette.scss

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
$MQNarrow: 1120px !default;
2+
$MQMobile: 719px !default;
3+
$MQMobileNarrow: 419px !default;

docs/usage.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -345,9 +345,8 @@ var args = new {
345345
id = "123",
346346
foo = "bar"
347347
};
348+
// Will make a call to https://example.org/endpoint/123?foo=bar
348349
var response = await client.GetJsonAsync<TResponse>("endpoint/{id}", args, cancellationToken);
349-
350-
// will make a call to https://example.org/endpoint/123?foo=bar
351350
```
352351

353352
It will search for the URL segment parameters matching any of the object properties and replace them with values. All the other properties will be used as query parameters.
@@ -356,16 +355,16 @@ Similar things are available for `POST` requests.
356355

357356
```csharp
358357
var request = new CreateOrder("123", "foo", 10100);
359-
var result = client.PostJsonAsync<CreateOrder, OrderCreated>("orders", request, cancellationToken);
360358
// Will post the request object as JSON to "orders" and returns a
361359
// JSON response deserialized to OrderCreated
360+
var result = client.PostJsonAsync<CreateOrder, OrderCreated>("orders", request, cancellationToken);
362361
```
363362

364363
```csharp
365364
var request = new CreateOrder("123", "foo", 10100);
366-
var statusCode = client.PostJsonAsync("orders", request, cancellationToken);
367365
// Will post the request object as JSON to "orders" and returns a
368366
// status code, not expecting any response body
367+
var statusCode = client.PostJsonAsync("orders", request, cancellationToken);
369368
```
370369

371370
The same two extensions also exist for `PUT` requests (`PutJsonAsync`);

0 commit comments

Comments
 (0)