Use method save()
See original GitHub issueHi,
I would like to use save()
on restangularized element.
1 - I saw this issue https://github.com/mgonto/restangular/issues/697. When will it be merged ?
2 - I think it will be easier to use if save()
was based on object.id
.
var myCar = {};
// Do restangularizeElement
myObject.save() // Do a POST request on '/car'
var myObject = {id: 1};
// Do restangularizeElement
myObject.save() // Do a PUT request on '/car/1'
What do you think about it ?
Thanks for your reply
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top Results From Across the Web
Spring Data - CrudRepository save() Method - Baeldung
Learn how to save and update entities to a database using Spring Data CrudRepository.
Read more >Spring Data JPA CrudRepository - save() Method - Java Guides
In this tutorial, we will learn how to use the Spring Data CrudRepository interface provided save() method with an example. As the name...
Read more >db.collection.save() — MongoDB Manual
The save() method uses either the insert or the update command, which use the default write concern. To specify a different write concern,...
Read more >Use method of model class within save method - Stack Overflow
Can you call the method super(MyModel, self).save(*args, **kwargs) before you call self.do_something() ? · I have tried that--it doesn't seem to ...
Read more >Spring Data JPA Tutorial - #14 - save() Method - YouTube
In this lecture, we will learn how to save an entity to the database using the save() method. Hi, welcome to the Spring...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
oh man, why he has left this awesome project 😦
It should’ve been merged awhile ago, but mgonto has left the project as the primary author, so myself and a few others have been trying to maintain it. I will do my best to try to get this reviewed, but time is limited 😦