Codit / practical-api-guidelines

Practical guidelines for building & designing APIs with .NET.
MIT License
16 stars 5 forks source link

Use the System.Net.Http.HttpMethod public methods #98

Closed MassimoC closed 5 years ago

MassimoC commented 5 years ago

Why not

new HttpRequestMessage(HttpMethod.Delete, ...);

_Originally posted by @fgheysels

MassimoC commented 5 years ago

on tests/Codit.IntegrationTest/CustomizationTest.cs

var request = new HttpRequestMessage(new HttpMethod("DELETE"), $"/codito/v1/customization/{id}");