This is more of a personal preference. Restful Web Services, OReilly, describes as somewhat interchangeable.
Thus, I prefer the first method for the reasons the programmer intends. In Rest, when I look at the code, I mentally read
VERB http://someuri.com/someresource/id
The verb and the resource are close to each other.
With PUT and DELETE, you should use a workaround similar to the ones you showed. In the first example, the resource and the verb are still close together on the same line.
However, in the second example, the resource is divided into two lines. The verb is included in the same line as the resource identifier, but is located away from the name of the resource. This is very, very insignificant, but for me it makes the second example less readable.
source share