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.

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 3.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_oscar_api-3.0.0-py3-none-any.whl (56.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-oscar-api-3.0.0.tar.gz (41.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page