Skip to main content

REST API module for django-oscar

Project description

This package provides a RESTful API for django-oscar.

https://travis-ci.org/django-oscar/django-oscar-api.svg?branch=master Coverage Documentation Status Latest PyPi release

Usage

To use the Oscar API application in an Oscar E-commerce site, follow these steps:

  1. Install the django-oscar-api package (pip install django-oscar-api).

  2. Add rest_framework and oscarapi to INSTALLED_APPS

    INSTALLED_APPS = [
     ...
     'rest_framework',
     'oscarapi',
    ]
    
  3. 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")),
    )
    
  4. Apply migrations:

    python manage.py migrate
    

See the Documentation for more information and the Changelog for release notes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-oscar-api, version 2.0.2
Filename, size File type Python version Upload date Hashes
Filename, size django_oscar_api-2.0.2-py3-none-any.whl (54.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size django-oscar-api-2.0.2.tar.gz (37.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page