-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Updated first-web-api tutorial #34676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
597e944
Updated first-web-api tutorial (#34558)
e5b3610
Additional samples, ddoc and screenshot update to lukekaese's PR
wadepickett 656b668
Merge branch 'lukekaese-pr-update-wpickett' into main
wadepickett 26ebc0b
Update first-web-api.md
7259e72
Remove redundant code snippet from tutorial
wadepickett 62c3551
Fix code snippet reference in tutorial
wadepickett cde49de
Fix code snippet link in tutorial: removed typo
wadepickett ab04928
Add bullet points to action instructions in tutorial
wadepickett 5484522
Apply suggestions from code review
wadepickett 82a57dd
Adding more of tdykstra's review suggestions
wadepickett 08f5b50
Fix port number placeholder in tutorial
wadepickett 5d29651
Clarify OpenAPI and Swagger UI port details
wadepickett ed21ec8
Fix list: Add missing line break in tutorial
wadepickett d898d3e
Fix list formatting in tutorial markdown
wadepickett eb62cda
Update instructions for running and viewing output
wadepickett b7722ca
Update tutorial with Swagger UI configuration steps
wadepickett 1988ba9
Moved project template details in tutorial to just after creation
wadepickett 941c0c7
Fix formatting for request URL instructions
wadepickett e5938c1
Fix list formatting for packages
wadepickett 2f8bc20
Format NuGet package names as code, isolating list issue
wadepickett 89c91c1
Fix markdown header levels in tutorial
wadepickett 0b12d08
Update formatting for stop button instructions
wadepickett 90910ef
Fix indentation in first-web-api tutorial
wadepickett File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
aspnetcore/tutorials/first-web-api/samples/9.0/TodoApi/Models/TodoItem.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| namespace TodoApi.Models; | ||
| namespace TodoApi.Models; | ||
|
|
||
| public class TodoItem | ||
| { | ||
| public long Id { get; set; } | ||
| public string? Name { get; set; } | ||
| public bool IsComplete { get; set; } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 6 additions & 8 deletions
14
aspnetcore/tutorials/first-web-api/samples/9.0/TodoApi/TodoApi.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,20 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk.Web"> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>net7.0</TargetFramework> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
| <Nullable>enable</Nullable> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
|
|
||
| <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="7.0.0-rc.2.22476.2" /> | ||
| <PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.0-rc.2.22472.11" /> | ||
| <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.0-rc.2.22472.11" /> | ||
| <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.0-rc.2.22472.11"> | ||
| <PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.1" /> | ||
| <PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.2" /> | ||
| <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.0"> | ||
| <PrivateAssets>all</PrivateAssets> | ||
| <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> | ||
| </PackageReference> | ||
| <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.0-rc.2.22510.1" /> | ||
| <PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" /> | ||
| <PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="9.0.0" /> | ||
| <PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="7.2.0" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,4 +10,4 @@ public class WeatherForecast | |
|
|
||
| public string? Summary { get; set; } | ||
| } | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.