Skip to main content

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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for xyz-restful 0.3.3
File Interpreter ABI Platform
xyz_restful-0.3.3-py3-none-any.whl Python 3 none any Details

Release files / xyz_restful-0.3.3-py3-none-any.whl

Download URL xyz_restful-0.3.3-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
91704b2db59d43312b9ffec9bed2d1b2fd93882a8f9f749dfd3230e27ebe9576
BLAKE2b-256 checksum
How to use checksums
b7dd53ef748b5a96f048e06d699cf3692a415486df351df6ba30cf29589c12cf
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.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page