Scott Addie
55f0638c56
2.2 updates to web API doc ( #9303 )
...
Fixes https://github.com/aspnet/Docs/issues/9298
**Summary of Changes**
* Display the "Problem details" section for 2.2+ only
* Restore the missing `Startup.ConfigureServices` code snippets
* Genericize the compat flag language
* Use the `ConfigureApiBehaviorOptions` method for the 2.2 doc
* Add content for `[assembly: ApiController]` in the 2.2 doc
* Expand upon default response type returned for 400 status codes
* Added a solution file for the sample app to improve usability
* A quick UE pass
**Internal Review Pages**
* [2.2](https://review.docs.microsoft.com/en-us/aspnet/core/web-api/?branch=pr-en-us-9303&view=aspnetcore-2.2#problem-details-responses-for-error-status-codes )
* [2.1](https://review.docs.microsoft.com/en-us/aspnet/core/web-api/?branch=pr-en-us-9303&view=aspnetcore-2.1#problem-details-responses-for-error-status-codes )
* [2.0](https://review.docs.microsoft.com/en-us/aspnet/core/web-api/?branch=pr-en-us-9303&view=aspnetcore-2.0#problem-details-responses-for-error-status-codes )
2018-10-30 13:01:52 -05:00
Luke Latham
5704de168e
Implicit versioning of the All package ( #9223 )
...
Fixes #9219
@JunTaoLuo Dan calls out the implicit versioning "for 2.1 SDK or later;" however, we don't usually version the doc content by SDK release. We might need to say something for this update in the passage that I'm adding to the All topic (*aspnetcore/fundamentals/metapackage.md*) about which SDK version this applies to. I don't know if that's something that you would like to do or what version to call out.
I also remove the version from the samples. We also assume that devs are using the latest SDK with our samples.
2018-10-25 15:16:50 -10:00
Pranav K
9c91d557c9
Add docs for ProblemDetails response filter ( #9130 )
...
* Add docs for ProblemDetails response filter
* UE edits to problem details (#9152 )
[review URL](https://review.docs.microsoft.com/en-us/aspnet/core/web-api/index?view=aspnetcore-2.2&branch=pr-en-us-9152 )
2018-10-24 13:17:57 -10:00
Luke Latham
8e6dd4a7f4
Drop version from App package ( #8881 )
...
Addresses #8579
I might be getting the hang of **_find and replace_** now. 😝
This doesn't touch a couple that ref 2.2.0. I'll tidy those up on https://github.com/aspnet/Docs/issues/8518 after 2.2 RTM.
2018-10-06 17:10:28 -10:00
Luke Latham
46f41d4774
Update All and App package versions ( #8513 )
2018-09-13 11:39:23 -05:00
Luke Latham
1a0f79a8fe
Update All/App package version ( #8489 )
2018-09-11 08:53:03 -05:00
Scott Addie
4b4b8e5f2a
Replace line numbers range with snippet name
2018-07-24 21:44:05 -05:00
Luke Latham
34b33e245b
Add version to App package references ( #7551 )
...
Fixes #7532
2018-07-10 22:43:09 -05:00
Scott Addie
6bfabdb9c8
Convert synchronous web API methods to async ( #7544 )
...
* Convert synchronous web API methods to async
* React to feedback
2018-07-10 14:08:50 -05:00
Scott Addie
c3df45e474
Remove locale from URLs
2018-07-06 21:30:47 -05:00
Scott Addie
4f450caa71
Web API sample app cleanup ( #7506 )
...
- Removes an unnecessary *global.json* file
- Removes an unnecessary NuGet package
- Fixes 2 broken links in README file
2018-07-06 21:28:09 -05:00
Scott Addie
e23bf6825e
Mention 2.1 compat flag requirement for [ApiController] ( #7491 )
...
Fixes https://github.com/aspnet/Docs/issues/7407
[Internal Review Page](https://review.docs.microsoft.com/en-us/aspnet/core/web-api/?view=aspnetcore-2.1&branch=pr-en-us-7491#annotate-class-with-apicontrollerattribute )
2018-07-06 12:54:41 -05:00
Scott Addie
52c49c924d
Update sample apps to 2.1 RTM ( #6752 )
...
Addresses https://github.com/aspnet/Docs/issues/5495
Updates 2 web API samples and a Partial Tag Helper sample from 2.1 RC1 to 2.1 RTM.
2018-05-31 13:24:21 -05:00
Rick Anderson
7a2b517b72
Update preview to RC1 ( #6375 )
...
* remove preview
* rc
2018-05-11 14:03:53 -10:00
Scott Addie
d7716559e8
Add Web API controller definition doc ( #6003 )
...
* Add Web API controller definition doc
* Remove wwwroot folder reference from csproj file
* Verbiage tweaks
* Add info about FromForm inference
* Bold the attribute names
* Add TOC entries
* Change link ordering in TOC
* Add note about IntelliSense
* Major sample app changes
* Fix code snippet line numbers
* Minor verbiage tweaks
* Add a README file
* Add TestController.cs
* Verbiage changes
* Shorten wording
* Change wording
* Minor edit
* React to feedback
* Add attributes table
* Verbiage tweaks
* querystring -> query string
* Minor edit
* Add 2.1 controller samples
* Fix invalid moniker names
* Update code sample to 2.1
* Update line number
* Convert uppercase W to lowercase
* React to feedback
* Update sample app's README file
* Project file cleanup
* Replace word
* Remove MVC views from sample app
* Derive from ControllerBase instead of Controller
2018-04-24 14:03:55 -05:00