You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/csharp/tutorials/console-webapiclient.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
title: Create a REST client using .NET Core
3
-
description: This tutorial teaches you a number of features in .NET Core and the C# language.
3
+
description: This tutorial teaches you about some features in .NET Core and the C# language.
4
4
ms.date: 01/09/2020
5
5
ms.assetid: 51033ce2-7a53-4cdd-966d-9da15c8204d2
6
6
---
7
7
8
8
# REST client
9
9
10
-
This tutorial teaches you a number of features in .NET Core and the C# language. You’ll learn:
10
+
This tutorial teaches you a number of features in .NET Core and the C# language. You'll learn:
11
11
12
12
* The basics of the .NET Core CLI.
13
13
* An overview of C# Language features.
@@ -16,22 +16,22 @@ This tutorial teaches you a number of features in .NET Core and the C# language.
16
16
* Processing JSON information
17
17
* Managing configuration with Attributes.
18
18
19
-
You’ll build an application that issues HTTP Requests to a REST
19
+
You'll build an application that issues HTTP Requests to a REST
20
20
service on GitHub. You'll read information in JSON format, and convert
21
21
that JSON packet into C# objects. Finally, you'll see how to work with
22
22
C# objects.
23
23
24
-
There are many features in this tutorial. Let’s build them one by one.
24
+
There are many features in this tutorial. Let's build them one by one.
25
25
26
-
If you prefer to follow along with the [final sample](https://github.com/dotnet/samples/tree/master/csharp/getting-started/console-webapiclient) for this topic, you can download it. For download instructions, see [Samples and Tutorials](../../samples-and-tutorials/index.md#view-and-download-samples).
26
+
If you prefer to follow along with the [final sample](https://github.com/dotnet/samples/tree/master/csharp/getting-started/console-webapiclient) for this article, you can download it. For download instructions, see [Samples and Tutorials](../../samples-and-tutorials/index.md#view-and-download-samples).
27
27
28
28
## Prerequisites
29
29
30
-
You’ll need to set up your machine to run .NET core. You can find the
30
+
You'll need to set up your machine to run .NET core. You can find the
31
31
installation instructions on the [.NET Core Downloads](https://dotnet.microsoft.com/download)
32
32
page. You can run this
33
-
application on Windows, Linux, macOS or in a Docker container.
34
-
You’ll need to install your favorite code editor. The descriptions below
33
+
application on Windows, Linux, or macOS, or in a Docker container.
34
+
You'll need to install your favorite code editor. The descriptions below
35
35
use [Visual Studio Code](https://code.visualstudio.com/), which is an open
36
36
source, cross platform editor. However, you can use whatever tools you are
37
37
comfortable with.
@@ -161,7 +161,7 @@ using System.Net.Http.Headers;
161
161
```
162
162
163
163
This first version makes a web request to read the list of all repositories under the dotnet
164
-
foundation organization. (The gitHub ID for the .NET Foundation is 'dotnet'). The first few lines set up
164
+
foundation organization. (The GitHub ID for the .NET Foundation is `dotnet`.) The first few lines set up
165
165
the <xref:System.Net.Http.HttpClient> for this request. First, it is configured to accept the GitHub JSON responses.
166
166
This format is simply JSON. The next line adds a User Agent header to all requests from this
167
167
object. These two headers are checked by the GitHub server code, and are necessary to retrieve
@@ -244,7 +244,7 @@ foreach (var repo in repositories)
244
244
Console.WriteLine(repo.name);
245
245
```
246
246
247
-
Compile and run the application. It will print out the names of the repositories that are part of the
247
+
Compile and run the application. It will print the names of the repositories that are part of the
0 commit comments