Paul Hallett
Paul Hallett
Thanks for your input @frabraga - you're helping to make this styleguide better! Let me know if I can help any other way.
So many questions! Let me tick off a few of the easy ones: - I almost always use `APIView`. This is a personal preference, because I like the `get/post/put/delete` methods...
Custom methods: `services.py`. So the `apis.py` would handle the `APIView` class, and dispatch actions to the `services.py` layer for the domain actions. For example, a POST to an APIView could...
Good question: For APIs: ``` All data returned from APIs must be serializable. ``` For Services there is no restriction :)
Hello! This is a good question, and I've dealt with a similar issue like this before, where we wanted some information usually stored in Domain B, but we wanted it...
If you have four separate domains and you have that requirement, then yes? But what if you have that data structure normally with foreign keys and you're doing joins? That...
@flyingdev in your case, you'd be using the `interfaces.py` in your own domain as an abstraction over the `services.py` of the other domain. That is the boundary of separation in...
Good to know, thanks
Yeah, you're right. More complex examples are needed. I don't actively work on this and I loosely follow the pattern in my current job, but I can't easily lift and...