New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API always returns 304 as response from PUT request #69
Comments
AHHHHHHHhhhhhh, tearing my hair out. Skype conversation below between @hotstone and I. [16:38:41] Lloyd Holman: So, how can we provide better logging. I mean, I want to add logging around this methodhttps://github.com/lloydstone/femah/blob/master/Femah.Core/Api/ApiResponseBuilder.cs#L77 So, we need better, logging, I'm blind to this issue and the alternative is.
Nasty, nasty, nasty, bugger, maybe we need to do this now http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-symbol-package and create a symbol package so we can debug into Femah from the hosting app straight away? |
Right, I completed #74 and had the culprit within 30 mins. Furthermore, the reason we're not seeing unit tests fail is due to mocking out of the provider, which is ultimately correct as at that point we're not testing the providers. Some unit tests and fix on its way. |
#69 - API always returns 304 as response from PUT request
As we can see from the below we now get an HTTP 200 and the updated object returned in the body from a PUT request updating a featureswitch. However, I'm still seeing an error with returning the current state of the object if a 304 is legitimately returned, (see below), I feel this is more something around #70 To do
|
Issue deploying to Azure due to nuget.org being a dick. |
…Modifying the PUT request to return just an HTTP statuscode of 304 with no body if there are no changes.
So, the API documentation has smoked out a few issues.
Taking a look at http://lloydstone.github.io/femah/api.html#UpdateAFeatureSwitch you can see that regardless of whether the feature switch is modified a 304 'Not Modified' is returned, you can check here before and after running the code.
The text was updated successfully, but these errors were encountered: