I am delighted to see this topic. I'm sorry I badgered you about it, but nevertheless pleased to see it.Anyway, in the original thread, one of the other posters recommended Django-Rest-Framework over Tastypie for a few reasons. I have looked into it subsequently and I'm convinced. I think Tastypie is in some sense easier to get started with, but Rest-framework seems to do a better job staying current, and is somewhat more broadly useful (e.g. OAuth support now baked in; it already supports Django 1.5's customizable User models). The browsable API is quite nice also.
So although I don't have specific requirements for you, I'll throw out a suggestion, which is to prefer Rest-framework.J
On Wednesday, March 13, 2013 2:01:40 PM UTC-7, David Winterbottom wrote:Just a note that I've started gathering requirements for a new Oscar extension: a REST API. This should be useful for:
- Adding rich-client JS functionality to an Oscar site (eg Backbone, Knockout - that kind of thing)
- Building mobile apps.
Given my experience, I can see that it would be easy to use Tastypie to put together a set of extensible APIs.Repo here:I'm using the wiki to document requirements before any work starts in earnest.Please post any suggestions to this thread.
I need to learn tastypie and (backbone/knockout/require).js for a Tangent project and have been playing around with these libs in an Oscar branch:--
David Winterbottom
Head of Programming
Tangent Labs
84-86 Great Portland Street
London W1W 7NR
England, UK
--
https://github.com/tangentlabs/django-oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
I've started two branches to explore using tastypie and django-rest-framework:
El dijous 21 de març de 2013 18:20:10 UTC+1, David Winterbottom va escriure:I've started two branches to explore using tastypie and django-rest-framework:
Are already done?
I'm working to integrate Oscar to Tryton and OpenERP. Two ERP's written by Python.
Sale Orders (basket) and address we inherit Oscar class to generete in ERP in live (threads and ERP webservices). Work done ;)
The catalogue I prefer to export products ERP -> Oscar (clone/cache). I read in oscarcommerce integration with SAP webservices. Are availble this project or doc about it?
I will try to use Django Piston to comunicate ERP -> Oscar but I find this branches tastypie and rest framework another API integration.
What is "the best" API to comunicate to Oscar? How to contribute/test it?
--
https://github.com/tangentlabs/django-oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
I've started two branches to explore using tastypie and django-rest-framework:
Are already done?The library is still in early development - those two branches are just proof-of-concepts. It's not production-ready yet.
I'm working to integrate Oscar to Tryton and OpenERP. Two ERP's written by Python.
Sale Orders (basket) and address we inherit Oscar class to generete in ERP in live (threads and ERP webservices). Work done ;)
The catalogue I prefer to export products ERP -> Oscar (clone/cache). I read in oscarcommerce integration with SAP webservices. Are availble this project or doc about it?
There's nothing public about that. Within several Tangent projects, we integrate with SAP. This happens in a variety of ways. In some instances they post XML documents to a webservice, in others, we use their PI layer and submit SOAP requests. I've not come across a SAP installation that uses REST at all - SOAP seems to be their preferred transport mechanism.
I will try to use Django Piston to comunicate ERP -> Oscar but I find this branches tastypie and rest framework another API integration.As I understand it, piston is no longer maintained and you would be better advised to use either DRF or TastyPie. See http://pydanny.com/choosing-an-api-framework-for-django.html
Hello David,I forget to reply your comments......I've started two branches to explore using tastypie and django-rest-framework:
Are already done?The library is still in early development - those two branches are just proof-of-concepts. It's not production-ready yet.Ok. I developed in our shop API methods. It's easy and customizable by shopI'm working to integrate Oscar to Tryton and OpenERP. Two ERP's written by Python.
Sale Orders (basket) and address we inherit Oscar class to generete in ERP in live (threads and ERP webservices). Work done ;)
The catalogue I prefer to export products ERP -> Oscar (clone/cache). I read in oscarcommerce integration with SAP webservices. Are availble this project or doc about it?
There's nothing public about that. Within several Tangent projects, we integrate with SAP. This happens in a variety of ways. In some instances they post XML documents to a webservice, in others, we use their PI layer and submit SOAP requests. I've not come across a SAP installation that uses REST at all - SOAP seems to be their preferred transport mechanism.In UK, you like to paid expensive licences and when finish work day, you have some headhaches using SOAP (it's a Spanish joke :P )
I will try to use Django Piston to comunicate ERP -> Oscar but I find this branches tastypie and rest framework another API integration.
As I understand it, piston is no longer maintained and you would be better advised to use either DRF or TastyPie. See http://pydanny.com/choosing-an-api-framework-for-django.htmlThanks! Good website!. Finally we choose django-treebeard to ERP -> Django API.In Django, we use ERPpeek (OpenERP) or Proteus (Tryton) to communicate Oscar -> ERP (generate order inlive, get prices shipping, etc)My headhaches when I work in API was in categories: how to generate number to path field in catalogue categories. First time, I don't understand nothing (1) ;)Thanks
--
https://github.com/tangentlabs/django-oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
I would like to discuss my previous statement a bit in detail.
With "looks very good" I mean that I did a comparison between the two frameworks (they both look very stable and well documented) and I opted for DRF because it has the possibility to browse the API and because its architecture of the views comes directly from Django CBV. Tom Christie (DRF author) explains these two concepts here http://stackoverflow.com/a/7518570
Personally I haven't found any particular limitation in DRF after 1 year using it and when I had the need to extend it with some customized class it was quite easy to do.
Reading the previous messages it looks like there are two drafts to implement Oscar APIs using both frameworks.
Do you have selected which one to use yet?
Cheers.
On Friday, 14 February 2014 14:32:55 UTC, Andrea Grandi wrote:I've been using Django Rest Framework since 1 year ago now and I can confirm it looks very good.
I would be happy to contribute to this API, I just need to find a little spare time to dedicate to it :)
Cheers.
On Wednesday, 13 March 2013 21:01:40 UTC, David Winterbottom wrote:Just a note that I've started gathering requirements for a new Oscar extension: a REST API. This should be useful for:
- Adding rich-client JS functionality to an Oscar site (eg Backbone, Knockout - that kind of thing)
- Building mobile apps.
Given my experience, I can see that it would be easy to use Tastypie to put together a set of extensible APIs.Repo here:I'm using the wiki to document requirements before any work starts in earnest.Please post any suggestions to this thread.
I need to learn tastypie and (backbone/knockout/require).js for a Tangent project and have been playing around with these libs in an Oscar branch:--
David Winterbottom
Head of Programming
Tangent Labs
84-86 Great Portland Street
London W1W 7NR
England, UK
--
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-oscar.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-oscar/6a31eade-c8d8-4d07-af32-88d3651c76b2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-oscar/CAA0jhkpKsqyNH_NWew5vT0nfWeeDPL5p0VCk8%3Db1CV7x29_Q_g%40mail.gmail.com.
I would second DRF, my team and I did extensive digging into TP & DRF and finally decided to go with DRF as it builds html docs as an addition to TP
we have two Oscar projects that has mobile apps to be built and we were going to start this by our own but since it's coming here we will be definitely contribute our own to Django-oscar-API
more to come when I'm on PC :-)
-Bashar
Sent on the go via Gmail mobile
Personally, I would like to see Oscar separated into two independent and optional applications with one common dependency:
Under that structure, the concerns are separated. You can now have:
Responsibilities of the API server would include:
Responsibilities of API clients would include:
an email to django-oscar+unsubscribe@googlegroups.com<mailto:django-oscar+unsub...@googlegroups.com>.
<https://groups.google.com/d/msgid/django-oscar/78533640-1b9d-41c2-b1b8-ca5102d1c301%40googlegroups.com?utm_medium=email&utm_source=footer>.
Visit this group at http://groups.google.com/group/django-oscar.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-oscar/78533640-1b9d-41c2-b1b8-ca5102d1c301%40googlegroups.com
--
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
--- You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-oscar/533700CC.6060207%40tangentsnowball.com.
--
https://github.com/tangentlabs/django-oscar
http://django-oscar.readthedocs.org/en/latest/
https://twitter.com/django_oscar
---
You received this message because you are subscribed to the Google Groups "django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-oscar...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-oscar/cff3b8fc-0ac8-4d3d-8dc2-78626f7c502c%40googlegroups.com.