This package provides a RESTful API for django-oscar.
To use the Oscar API application in an Oscar E-commerce site, follow these steps:
Install the
django-oscar-api
package (pip install django-oscar-api
).Add
rest_framework
andoscarapi
toINSTALLED_APPS
INSTALLED_APPS = [ ... 'rest_framework', 'oscarapi', ]
Add the application's urls to your urlconf
from django.urls import include urlpatterns = ( # all the things you already have path("api/", include("oscarapi.urls")), )
Apply migrations:
python manage.py migrate
See the Documentation for more information and the Changelog for release notes.