Manage suppliers and consumers in an on-demand marketplace. Think of it like an API to build services like Airbnb, Upwork, or any marketplace where you have suppliers offering a service or product, and consumers searching for specific characteristics of the product or service.
This app provides models and API endpoints to facilitate the implementation of the marketplace.
Full documentation on https://django-on-demand.readthedocs.io/en/latest/
Endpoints
/search-suppliers
/users/<id>/supplier-profile (create, update, retrieve)
/users/<id>/consumer-profile (create, update, retrieve)
/newest-suppliers
/connection (create a connection between supplier and consumer, update, terminate)
Quick start
1. This app is using django-rest-framework to provide API endpoints, which means this app will need to be added to the list of installed apps. The app will automatically install django-rest-framework if it’s not installed. on_demand also needs to be added to the list of installed apps:
INSTALLED_APPS = [
...
'on_demand',
'rest_framework'
]
Given that the app has models, a db client should be installed. For example pip install mysqlclient
Include the Django On Demand URLconf in your project urls.py like this:
path('ondemand/', include('on_demand.urls')),Run python manage.py migrate to create the models.
Visit http://127.0.0.1:8000/ondemand/ to test the new API.
Release files for django-on-demand 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-on-demand-2.0.0.tar.gz | 316.4 kB | Details |
Release files / django-on-demand-2.0.0.tar.gz
| Download URL | django-on-demand-2.0.0.tar.gz |
|---|---|
| Size | 316.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bc78145330d3fed4c651ab7d3f7e518d3768fa795434e40a5ff71901e41ba3c
|
|
BLAKE2b-256 checksum How to use checksums |
c9be33c3e91adbcec2923f83f7876c780ea834797ab353040a0c99c996dba4fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.0
|