pyeve / eve-swagger

Swagger extension for Eve-powered RESTful APIs
http://python-eve.org
Other
154 stars 43 forks source link

If-Match header required when concurrency control is disabled #49

Closed silver8ack closed 7 years ago

silver8ack commented 7 years ago

Swagger UI will not allow PUT/PATCH/DELETE without an If-Match header, even when concurrency control is disabled in the API.

In my settings for my api I have the following:

IF_MATCH = False
ENFORCE_IF_MATCH = False 

I have also tried removing the header from X_HEADERS:

X_HEADERS = ['Authorization', 'Content-Type', 'Accept']

I have verified that I can PUT/PATCH/DELETE objects via the REST API, but the swagger ui will not allow the 'Try it now' option without supplying an If-Match header.

nicolaiarocci commented 7 years ago

I am not sure whether this is a SwaggerUI or eve-swagger issue... did you investigate that?