There was a debate with one of the platform engineers (as a mobile dev), about the codes being returned.
The scenario is: when trying to update a resource the server is returning a 204 with the resource_id in the header. I would have expected a 200 response with a JSON body with the resource_id. In my opinion, this would be easier for the mobile clients to parse.
Am I wrong in thinking this way? I always thought 204 is a code that tells me there is no content, But looking for the resource_id kind of seems contradictory.
Aucun commentaire:
Enregistrer un commentaire