Swagger-core: HTTP Method REPORT not supported

Created on 15 Apr 2016  路  6Comments  路  Source: swagger-api/swagger-core

Hi
According to http://www.iana.org/assignments/http-methods/http-methods.xhtml REPORT is a valid HTTP method. It's not supported by Swagger, probably because it's less known method. Will future swagger releases support it?

REPORT is similar to GET method because it's safe and idempontent. More importantly it fully supports parameters in request body. Such paramaters aren't recommended in GET requests (response caching) and parameters in URI have their limitations (e.g. request-line length).

Most helpful comment

I can't see how swagger can call itself RESTful and not allow additional methods.

All 6 comments

@aparvis I would suggest you to report it in https://github.com/OAI/OpenAPI-Specification similar to this one:

https://github.com/OAI/OpenAPI-Specification/issues/325

As I see the REPORT method is registered in the HTTP method registry. The usage of the REPORT method is limited to RFC 3253 (Versioning Extensions to WebDAV) which is not a general HTTP spec. Needs swagger support for this kind of methods?

Closing as not supported by the spec. If it gets added in a future version, we'll add support to it.

I can't see how swagger can call itself RESTful and not allow additional methods.

I'm also in need of support for other methods, specifically COPY.

Well, the spec doesn't allow it, so we can't support it.
If you'd like to see additional methods added in the future, file a ticket against the OpenAPI specification.

Was this page helpful?
0 / 5 - 0 ratings