Commit Graph

221 Commits (b56a63378600aabcd07d8184ead197314e5ea34d)

Author SHA1 Message Date
Safia Abdalla 4c448c256f
Merge pull request #22600 from dotnet/safia/problem-details
Add docs on generating ProblemDetails payload
2021-06-27 11:45:25 -07:00
Safia Abdalla 6a8760c45f
Update aspnetcore/web-api/handle-errors.md
Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
2021-06-23 20:27:42 -07:00
Rick Anderson 9ce69a68e1
Update handle-errors.md (#22601) 2021-06-23 18:57:59 -07:00
Safia Abdalla 6c5cebbaf8
Add docs on generating ProblemDetails payload 2021-06-23 18:32:11 -07:00
gbarrs-at-em 64beeb3934
Update jsonpatch.md
It took me longer than I care to admit before I worked out I was getting a 400 response to a Patch request because I was serialising the request using  `JsonSerializer.Serialize` rather than `JsonConvert.SerializeObject`.
2021-06-11 20:59:07 +01:00
Rick Anderson ad321c2700
Add Home and Privacy to no-loc (#22237)
* Add Home and Privacy to no-loc

* Add Home and Privacy to no-loc
2021-05-08 10:12:34 -10:00
Rick Anderson 2f00739f4e
Kestrel to no-loc (#22182) 2021-05-01 13:03:18 -10:00
Michal Mrnuštík 383b0f5c3e
Replace status code with status code enum (#22116)
* Replace all hardcoded status codes with System.Net.HttpStatusCode

* Replace all StatusCodes references to HttpStatusCode

Co-authored-by: Michal Mrnuštík <michal.mrnustik@riganti.cz>
2021-04-23 10:14:47 -10:00
Rick Anderson cc5b254470
Author scott change to rick (#21927) 2021-04-05 12:17:06 -10:00
Scott Addie 09e3573c75 Finish default branch renaming work 2021-03-09 22:40:27 -06:00
Rick Anderson f91200c787
Update formatting.md (#21684) 2021-03-04 09:20:45 -10:00
Vegard Løkken fe9a6b6b9a
Use selected encoding when writing the response (#21669) 2021-03-03 12:48:46 -10:00
James Montemagno 6d103e410e
Add Link to Microsoft Learn for Web API (#21432) 2021-02-04 09:25:04 -06:00
Rahul P Nath a65b43ac2c
Specify MvcOptions.ReturnHttpNotAcceptable for 406 (#21349)
* Specify MvcOptions.ReturnHttpNotAcceptable for 406

* Update aspnetcore/web-api/advanced/formatting.md

Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com>

Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com>
2021-01-29 07:31:22 +10:00
Rick Anderson 96e980bc54
Error message always camelCase (#21328)
* Error message always camelCase

* Error message always camelCase

* Error message always camelCase

* Error message always camelCase

* Error message always camelCase

* Error message always camelCase

* Error message always camelCase

* Error message always camelCase

* work
2021-01-27 14:31:20 +10:00
Scott Addie 04eb74295e
Update action return types sample apps (#21270) 2021-01-22 10:24:54 -06:00
Rahul P Nath ed6a33b9b8
Specify Type for ProducesResponseType (#21260)
Later in the article, this is highlighted as one of the differences between using IActionResult and ActionResult<T>
2021-01-21 09:52:00 -06:00
Rick Anderson fb85df63d8
clean up handle web API errors (#21121)
* clean up handle web API errors

* clean up handle web API errors

* clean up handle web API errors

* clean up handle web API errors

* Update aspnetcore/web-api/handle-errors.md

Co-authored-by: Kirk Larkin <serpent5@pm.me>

Co-authored-by: Kirk Larkin <serpent5@pm.me>
2021-01-08 13:47:32 -10:00
AYDIN HOMAY 9f2978e63a
API errrors, how to handle (#21016)
* Added a section of Middleware Exception Handling

* created a frist draft from new section to cover Middleware Exception Handling.

* Update handle-errors.md

* Update aspnetcore/web-api/handle-errors.md

* Update aspnetcore/web-api/handle-errors.md

* Update aspnetcore/web-api/handle-errors.md

* Update aspnetcore/web-api/handle-errors.md

Co-authored-by: Pranav K <prkrishn@hotmail.com>

* Update aspnetcore/web-api/handle-errors.md

Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
Co-authored-by: Pranav K <prkrishn@hotmail.com>
2021-01-08 13:42:07 -10:00
David Henley 0e10371eb7
Fix Add URL example (#21107)
`Add URL` example was using `Add File`
2021-01-04 17:21:09 -06:00
Delora Bradish 5bb4eb95d0
removed mscustom tag (#21076) 2020-12-30 08:11:16 -06:00
James Newton-King dc03b5e3ea
Update route-to-code doc with API links (#20835)
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
2020-12-02 15:16:36 -06:00
James Newton-King d57a751df7
Update route-to-code.md (#20829) 2020-12-02 20:27:10 +13:00
James Newton-King 2ad7d8060f
Add doc for new ASP.NET Core JSON extension methods (#20259)
Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
2020-11-30 16:30:26 -06:00
Kirk Larkin ba2f7a8b39
Include ModelState in BadRequest for vcard Input Formatter sample (#20739) 2020-11-23 15:15:02 -10:00
Scott Addie bfba0e4f8a
Add links to blog post for configuring VS to launch HttpRepl (#20552) 2020-11-13 21:16:21 -06:00
Scott Addie 773e85ae6c
Fix a typo in the HttpRepl doc (#20547) 2020-11-12 12:54:57 -06:00
Scott Addie c6438420a5
Rebrand HTTP REPL to HttpRepl (#20518) 2020-11-11 17:22:34 -06:00
Scott Addie f27d8a5a58
Remove "Core" from the telemetry message 2020-11-11 15:52:26 -06:00
Scott Addie 33d0830794
Move HTTP REPL docs to a folder (#20493) 2020-11-10 20:18:28 -06:00
Tim Mulholland f18e5ba881
Update HttpRepl docs for 5.0 changes (#20468)
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
2020-11-10 19:57:03 -06:00
Rick Anderson 311cef0e25
appsettings.json noloc (#20320) 2020-10-27 11:27:47 -10:00
Mike F. Robbins a6a654a238
Bulk addition of azurecli mscustom metadata (#20275)
Co-authored-by: Mike F. Robbins <mikefrobbins@users.noreply.github.com>
2020-10-22 11:33:39 -10:00
Rick Anderson 173daadeb9
Remove set from interface impl (#20077) 2020-10-02 06:52:33 -10:00
Rick Anderson 7f1dc89c19
Update formatting.md 2020-09-30 14:59:53 -10:00
Kirk Larkin d9daf4ac39
Detail effects of AddNewtonsoftJson (#20060) 2020-09-30 12:34:06 -10:00
Rick Anderson 23bd8d2057
Add ASP.NET Identity to no loc (#19578)
* Add ASP.NET Identity to no loc

* Add ASP.NET Identity to no loc

* Add ASP.NET Identity to no loc

* Add ASP.NET Identity to no loc
2020-08-19 11:07:40 -10:00
Rick Anderson 3a5c8b81d4
add Cookie to no loc (#19446) 2020-08-07 14:55:26 -10:00
Scott Addie 0646aea359
Add verbiage about magic number 10 (#19296) 2020-07-23 13:59:54 -05:00
Sergey G 4bbe3e9463
Fix 400 responses inconsistency (#19260)
* Inconsistent responses for 400 error

Potential fix for inconsistency between automatic `[ApiController]` 400 response and `BadRequest()` result.

* Update index.md

* Removing moniker for 2.1

> The whole topic is set up as 2.1 or later, so the moniker range isn't needed.
https://github.com/dotnet/AspNetCore.Docs/pull/19260#discussion_r457550239

* edit pass

* add API ref link

Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
2020-07-20 20:26:49 -05:00
Luke Latham 2a6e1db637
Fix namespace/API docs cross-link (#19193) 2020-07-13 07:54:00 -05:00
Kirk Larkin 3dc38dbe59
Clean up the Custom Formatters sample (#18980)
* Restructure samples folders in view of consistency

* Small changes to the topic content

* Rename .csproj and namespaces for 3.x sample

* Clean up sample and snippets
2020-06-29 11:35:52 -10:00
Luke Latham 80446f1dd8
Add Blazor WebAssembly/Server to no-loc (#18962) 2020-06-25 19:11:04 -05:00
Rick Anderson d0e54e113a
Update Custom Formmatter (#18795)
* Update Custom FOrmmatter

* Update Custom FOrmmatter

* Update Custom FOrmmatter

* Update Custom FOrmmatter

* Update Custom FOrmmatter

* clean up

* clean up

* clean up

* clean up

* clean up

* clean up

* clean up

* Apply suggestions from code review

Awesome suggestions. Much appreciated.

Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>

* final edit

* Update aspnetcore/web-api/advanced/custom-formatters.md

Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>

Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>
2020-06-24 12:56:28 -10:00
Kirk Larkin 4feba89757
Fix up API links to ContentResult and Content (#18835) 2020-06-17 14:45:35 -10:00
eajhnsn1 b188360d77
Update formatting.md (#18632)
Removed "options." presumably copy/pasted into the per-action serialization samples.
2020-06-02 11:40:22 -05:00
Rick Anderson 20cc0abe89
Update action-return-types.md (#18584) 2020-06-01 08:48:54 -05:00
Maira Wenzel e90ca8f216
update URL (#18575) 2020-05-29 15:08:36 -10:00
Ian Kemp d89957fb8d
Use strongly-typed status code (#18508)
* use strongly-typed constants for status code

* alphabetize usings
2020-05-27 16:19:47 -05:00
Tim Mulholland 6ea70cf883
Add documentation for default credential use (#18412)
* Add documentation for default credential use

* Edit pass on HTTP REPL default credentials PR (#18413)

* react to feedback

Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
2020-05-20 17:17:30 -05:00