XYZ RestFul API
XYZ RestFul API provides a way to register django-rest-framework apis as easy as Django admins.
Usage Example
First, add ‘xyz_restful’ into django settings’s INSTALLED_APPS
INSTALLED_APPS = [
...
'xyz_restful',
...
]
Then, register url router in project’s "urls.py"
from xyz_restful.helper import router
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^api/', include(router.urls)),
...
]
Then, in an app for example: comment , create a file "comment/apis.py"
from xyz_restful.decorators import register
@register()
class PostViewSet(viewsets.ModelViewSet):
serializer_class = serializers.PostSerializer
queryset = models.Post.objects.all()
then, full api url just like : http://127.0.0.1:8000/api/comment/post/
Enjoyed!
Metadata
Release files for xyz-restful 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xyz_restful-0.3.4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / xyz_restful-0.3.4-py3-none-any.whl
| Download URL | xyz_restful-0.3.4-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28e8f8d71c18b84466851ac0941bcb392f8aac536c4192e1b51ffa2d1bc4b6e7
|
|
BLAKE2b-256 checksum How to use checksums |
25590fabaabf889aa5d58d0655f91ce00b72daa962654c969e335def03b0c078
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for xyz-restful 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.