Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Improve documentation - redstone_mapper: Updating resources (MongoDB and PostgreSQL). #57

Open
digitalfiz opened this issue Dec 14, 2014 · 1 comment
Milestone

Comments

@digitalfiz
Copy link

You have examples for getting a list of a resource and adding a new with POST but nothing on updating a resource using PUT. I have done it mysql but am curious as to how you would do it.

@luizmineo
Copy link
Member

Usually, I don't make it too different from adding a new resource. The main difference is that I expect the resource to have an id attribute (the service can verify that, and return a 400 status code if id is not provided). I will update the documentation with a more complete example, meanwhile, you can see an example here

@luizmineo luizmineo changed the title Add example of update a resource using redstone_mapper_mongo. Improve documentation - redstone_mapper: Updating resources (MongoDB and PostgreSQL). Dec 24, 2014
@luizmineo luizmineo added this to the v0.6 milestone Jan 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants