* Change to instructions for First Web API tutorial
I've updated the install instructions for what packages you need to install.
The reason I have added the second lot of instructions is because it wasn't clear you needed to run an install for Microsoft.EntityFrameworkCore.InMemory too.
The heading only mentioned adding Microsoft.EntityFrameworkCore.SqlServer so once I had did that, I missed the second part of installing Microsoft.EntityFrameworkCore.InMemory.
* Update to First Web Api tutorial
Changing the heading after getting feedback from my previous PR.
* Update aspnetcore/tutorials/first-web-api.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Update aspnetcore/tutorials/first-web-api.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Update first-web-api.md
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Change sample swagger.json to OpenAPI format
Since the article says that “OpenAPI is preferred”, I changed the sample to use this format. I tried to be as close to the original sample as possible.
* edit pass
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
* Update to current version
* cleanup AddSwaggerGen snippets
* moving OpenApiInfo to proper location
* powerapps and flow version note 2.0 example
* annotations update
* annotations edit
* edit pass
* fix note
* update line number
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
At the end of the page, the following is mentioned:
> Add the Rating field to the Edit, Details, and Delete view templates.
However, we are already instructed to do so earlier in the tutorial:
> Update the remaining templates.
Also at the end of the page:
> Update the binding in the edit action method of the MoviesController.
Again, we are already instructed to do so earlier in the tutorial:
> update the [Bind] attribute for both the Create and Edit action methods to include the Rating property
Update Genre regular expression to match the intention as described in the tutorial text.
[This page](https://github.com/dotnet/AspNetCore.Docs/blob/master/aspnetcore/tutorials/razor-pages/validation.md) says that Genre:
* Must only use letters
* The first letter is required to be uppercase. White space, numbers, and special characters are not allowed.
The original regular expression used:
@"^[A-Z]+[a-zA-Z""'\s-]*$"
says to allow double quotes, whitespace, and dashes after the first letter.