Friendship Update returns the state of the friendship prior from the operation being executed as opposed to the state of the friendship after the operation has executed.
Running Frienship Show after the update operation returns the updated state of the object.
It means that the result of the operation are totally unusable. To solve this please follow rest api standards by either :
- Return the updated state
- Return only the status (200, 204 or 4xx) to inform the user that the operation has succeeded.
- Eventually return { result: “success” }
I don’t know if the problem comes from some eventual consistency on your side but is very confusing for developers and result in the requirement to send 2 requests (update + read) in order to check the state of the friendship after the operation has completed.
1 Like
Hamza
#3
Your feedback is very helpful, and I agree that it does make more sense to show the state of the friendship post operation so you can see that it’s successfully gone through.
This is the way that it currently operates, unfortunately, but please let us know what you want to see by providing feedback here as we build the next version of the Twitter API.
1 Like
system
closed
#4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.