Skip to main content

restful utils

Project description

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


Then, register url router in project’s ""

from xyz_restful.helper import router

urlpatterns = [
    url(r'^api/', include(router.urls)),

Then, in an app for example: comment , create a file "comment/"

from xyz_restful.decorators import register

class PostViewSet(viewsets.ModelViewSet):
    serializer_class = serializers.PostSerializer
    queryset = models.Post.objects.all()

then, full api url just like :


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

xyz_restful-0.1.4-py3-none-any.whl (9.2 kB view hashes)

Uploaded py3

xyz_restful-0.1.4-py2-none-any.whl (9.2 kB view hashes)

Uploaded py2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page