Commit Graph

4 Commits (29ccbaa0b096978e9c0ce040c84739f012c4fd7d)

Author SHA1 Message Date
Bart Lannoeye b10558c28d Use StatusCode instead of hardcoded integers (#10886)
* Added missing ProducesResponseType, aligned response types

Fixes #10613

* Apply suggestions from code review

Co-Authored-By: bartlannoeye <bart.lannoeye@gmail.com>

* Use StatusCodes instead of int for define-controller samples

* Use StatusCodes instead of int for action-return-samples

* Apply PR remarks
2019-02-19 12:43:18 -06:00
Bart Lannoeye 8b7c2203a0 Added missing ProducesResponseType, aligned response types (#10885)
* Added missing ProducesResponseType, aligned response types

Fixes #10613

* Apply suggestions from code review

Co-Authored-By: bartlannoeye <bart.lannoeye@gmail.com>
2019-02-19 10:22:45 -06:00
Luke Latham d18fa2b084
2.2 Sample Updates (#9795) 2018-12-04 10:56:13 -06:00
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