question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use method save()

See original GitHub issue

Hi, 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:open
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
k1ng440commented, Jun 20, 2016

oh man, why he has left this awesome project 😦

0reactions
daviesgeekcommented, Jun 19, 2016

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 😦

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found