You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
As per the HTTP spec for the 201 Created states, it must have the most specific URI for the resource given in the Location header field.
Therefore it should try to follow the Location field when a 201 status code is returned for non-GET operations.
At the moment I have used the following workaround:
SomeModel.save({ "name": "Archie" },
function (object, responseHeaders) {
$http.get(responseHeaders("Location")).success(
function (newObject) {
// real success with an object containing IDs.
});
},
function (error) {
// failure
}
);