Handle Operation HTTP Methods in 2.0
2.0In 2.0, operations without an explicit httpMethod now default to GET. This changes the behavior of getHttpMethod() and toArray(), which will now return 'GET' instead of an empty string.
Important:
- Explicit
httpMethodvalues must be non-empty strings. Passing an empty string or non-string value throwsInvalidArgumentException. - Casing is preserved. Because Guzzle Services 2.0 uses Guzzle PSR-7 3.x, it no longer automatically uppercases methods. If your service expects
GET, use uppercase in your service description.