A Django package for microservices
Project description
Install the package
setup in settings.py:
PROTOCOL = "http://" DOMAIN = { 'profile'(this is define variable): 'localhost:8001(this is domain)', }
PATH = { 'profile-create(this isdefine variable)': 'profiles/profile-create(this is api/path)', }
for create: user_data = { "uuid": str(user.uuid), "name": user.name } profile_create = CallEndpoint(self.request, 'profile'(this is varable of Domain which is define in settings), 'profile-create'(this is varable of path)).create(user_data)
for read all data: profile_list = CallEndpoint(self.request, 'profile', 'profile-list').get()
for get specific data by using id/uuid: profile_detail = CallEndpoint(self.request, 'profile', 'profile-detail').get_detail(id or uuid)
for update: profile_update = CallEndpoint(self.request, 'profile', 'profile-update').update(id or uuid, data)
for delete: profile_delete = CallEndpoint(self.request, 'profile', 'profile-delete').delete(id or uuid)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file microservices_django-0.0.1.tar.gz
.
File metadata
- Download URL: microservices_django-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8499dc254b0eba0ef49f966038617dbb3fb46529e8dd28d996d342c106bdf00 |
|
MD5 | 55769e7bf22ec6431662a47b62bfa836 |
|
BLAKE2b-256 | 3ab3bfb19d0edddab0def376931afc3755b06ab634c2c20a8e4f1a59d3ff6376 |
File details
Details for the file microservices_django-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: microservices_django-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36d62ec757b176056e5aa9a4787866e65464be866802284f4e3d99ac0a16dfb |
|
MD5 | f7d73100425c38715f1ea39554c2201e |
|
BLAKE2b-256 | 1057072463109f0e38899cadc23e388f59008f0c00ddd216bd8c9afa55cfc762 |