On Tue, Jun 3, 2014 at 8:56 AM, Brad Bode <[email protected]> wrote: > Regarding a single REST api called mezzanine.api.... that's how I would do >> it and I consider myself a pretty smart guy :) > > > There is absolutely no reason why you can't generalize model serialization > / deserialization and include it in the base of Mezzanine. With how common > it is becoming it is almost a necessity. > > Questions? > > Does a rest api, in your vision, provide for parsing JSON content from the > body of the http post? The standard rest concepts rely on the data being in > the URL, but most often, with things like angular, you are posting JSON > content in the body of the http message. >
I've only been involved with the back-end aspect of using DRF, but as I understand it handles PUT/POST/PATCH with JSON data by default. I'm not interested in sticking to some strict definition of REST, but rather whatever is pragmatic - and I think DRF follows this notion too. > > Another thing to consider is web sockets. More and more event driven > applications are becoming more popular. Pushing events from the UI to the > server and back is really the future of web design. Angular doesn't do this > for you, but it provides a framework that makes communication to the back > end VERY easy to accomplish. > Definitely out of scope for Mezzanine. I worked on a project called django-socketio though which covers this area. It's sorely out of date and desperately needs work if you're interested, check it out: https://github.com/stephenmcd/django-socketio > > Thoughts? > > -- > You received this message because you are subscribed to the Google Groups > "Mezzanine Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Stephen McDonald http://jupo.org -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
