https://github.com/dotnet/corefx/blob/3f0bd5d8c3d019ad8b1561395030a58bc38ddfe9/src/System.Net.Mail/ref/System.Net.Mime.cs#L44
I tried using System.Net.Mime.MediaTypeNames in my asp net core api to remove "magic strings"
[Consumes(System.Net.Mime.MediaTypeNames.Application...)]
public IActionResult Post(...)
{ ... }
But it's missing quite a few MIME types.
These come to mind:
text/css
text/javascript
application/json
application/json-patch+json
application/xml
application/javascript
application/x-www-form-urlencoded
multipart/form-data
multipart/byteranges
image/png
image/bmp
image/webp
image/svg+xml
audio/midi
audio/mpeg
audio/webm
audio/ogg
audio/wav
video/webm
video/ogg
https://github.com/dotnet/corefx/blob/3f0bd5d8c3d019ad8b1561395030a58bc38ddfe9/src/System.Net.Mail/ref/System.Net.Mime.cs#L44
I tried using
System.Net.Mime.MediaTypeNamesin my asp net core api to remove "magic strings"But it's missing quite a few MIME types.
These come to mind: