Skip to content
This repository was archived by the owner on Jul 10, 2024. It is now read-only.

Commit 5d80894

Browse files
natemcmasterdavidfowl
authored andcommitted
Updates for session 1 (#64)
* Update 1. Create BackEnd API project.md * Update 1. Create BackEnd API project.md
1 parent 290a22b commit 5d80894

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/1. Create BackEnd API project.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ First, open the `Controllers` controller and take a quick look at the `ValuesCon
136136
![](images/scaffold-api-controller.png)
137137

138138
### Using the cmd line
139+
1. Install the "Microsoft.VisualStudio.Web.CodeGeneration.Design" package
140+
```
141+
dotnet add package Microsoft.VisualStudio.Web.CodeGeneration.Design --version 2.2.0
142+
```
143+
139144
1. Install the `aspnet-codegenerator` global tool by running the following command:
140145
141146
```
@@ -193,6 +198,13 @@ Additional information on using Swashbuckle in ASP.NET Core is available in this
193198
1. In the *Speakers* section, click on the *GET* button. You'll see there are not speakers returned. Let's add one!
194199
1. In the *Speakers* section, click on the *POST* button. Referencing the example on the right, fill in a speaker request. Leave the `ID` blank, that will be filled in by the database.
195200
![](images/swagger-create-speaker.png)
201+
```json
202+
{
203+
"name": "Tyrion Lannister",
204+
"bio": "Drinks and knows things",
205+
"webSite": "http://giphy.com/search/tyrion-lannister"
206+
}
207+
```
196208
1. When you click the *Try it out!* button, you should see a success response from the server. Now, clicking the *GET* button above should show your newly added speaker.
197209
![](images/swagger-create-results.png)
198210

0 commit comments

Comments
 (0)