Skip to main content

A simple Django app that provides a RESTFul Direct certificate API.

Project description

Direct is a simple Django app that provides a RESTFul API to validate and fetch Direct certificate.

Detailed documentation is in the “docs” directory.

Quick start

  1. Pip install django-direct

    pip install django-direct

  2. Add “polls” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = (
        ...
        'direct',
    )
    
  3. Include the polls URLconf in your project urls.py like this:

    url(r'^direct/', include('direct.urls')),
    
  4. There are no models in this application so there is no migration step.

5. Use the APIs. Visit http://127.0.0.1:8000/direct/validate/[endpoint] to get a JSON validation report. Visit http://127.0.0.1:8000/direct/get-certificate/[endpoint].pem to get a PEM certificate$ Visit http://127.0.0.1:8000/direct/get-certificate/[endpoint].txt to get the response as text repsonse

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-direct, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-direct-0.1.tar.gz (2.5 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