Saasli / saasli-backend

Documentation
https://saasli.github.io/docs/
0 stars 0 forks source link

Get or Create Service #20

Closed godd9170 closed 7 years ago

godd9170 commented 8 years ago

I can see some application for a Salesforce-REST function that will 'get' and if it can't will 'create' an record. This is particularly useful in getting a usage type id.

It could potentially be a variant of the existing 'get' that will take a boolean parameter that creates and returns an Id rather than just None

godd9170 commented 7 years ago

Now that our request class handles updates/creates/gets so easily, I think any multi step functions like this and put are actually best left done up at the handler.py level. It's much clearer that way, and will make the logs we want to do in #34 much easier.