Stream: implementers
Topic: Operation with no parameters
Ewout Kramer (Jul 11 2017 at 16:59):
We are having a discussion on how to client should invoke an operation with no parameters. POSTing an empty body sounds illegal, but I don't think a completely empty <Parameters> resource is legal too? And using GET is only valid for idempotent operations, and there is no guarantee the call is idempotent....
Jenni Syed (Jul 11 2017 at 17:27):
It's legal from an HTTP perspective.
A quick google found this thread on ietf to back that thought up: http://lists.w3.org/Archives/Public/ietf-http-wg/2010JulSep/0272.html
Lloyd McKenzie (Jul 11 2017 at 17:33):
I would go with POSTing an empty body - though we'll need a change request to make clear this is legal
Ewout Kramer (Jul 12 2017 at 10:04):
I would go with POSTing an empty body - though we'll need a change request to make clear this is legal
Added #13632
Last updated: Apr 12 2022 at 19:14 UTC