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 oscarapi to INSTALLED_APPS.

  3. Add the application’s urls to your urlconf:

    from django.conf.urls import url
    
    from oscarapi.app import application as api
    
    urlpatterns = (
        # all the things you already have
        url(r'^api/', api.urls),
    )

    or with the newer Django 2.x way:

    from django.urls import path
    
    from oscarapi.app import application as api
    
    urlpatterns = (
        # all the things you already have
        path('api/', api.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.

Source Distribution

django-oscar-api-1.5.3.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

django_oscar_api-1.5.3-py2.py3-none-any.whl (40.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-oscar-api-1.5.3.tar.gz.

File metadata

  • Download URL: django-oscar-api-1.5.3.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for django-oscar-api-1.5.3.tar.gz
Algorithm Hash digest
SHA256 e5831eaa45d84131ac34d88f67ae7b9f3f62694607e9cc6cbdd33136b32407ef
MD5 7f1882da03dd9b0e499f5c398d538e5e
BLAKE2b-256 55f1680d6a372ffc3d3b7788e62c917ba54f6b6672524e31866418158cf9bada

See more details on using hashes here.

File details

Details for the file django_oscar_api-1.5.3-py2.py3-none-any.whl.

File metadata

  • Download URL: django_oscar_api-1.5.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 40.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for django_oscar_api-1.5.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f7f538c309c4d0b15944c4ec6c768bf267cdc77416fc5fab8a7b75de6439e9f2
MD5 b2cddd00d92ba10a1720478ba6bf87a4
BLAKE2b-256 0c5ec5e691e860980260d2db8bc7b0c3b312770655f96a9291124b363e4dcea0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page