""" .. module:: dj-stripe.contrib.rest_framework.urls. :synopsis: URL routes for the dj-stripe REST API. Wire this into the root URLConf this way:: path( 'api/v1/stripe/', include('djstripe.contrib.rest_framework.urls', namespace="rest_djstripe") ), # url can be changed # Call to 'djstripe.contrib.rest_framework.urls' and 'namespace' must stay as is """ from django.urls import path from . import views app_name = "djstripe_rest_framework" urlpatterns = [ # REST api path("subscription/", views.SubscriptionRestView.as_view(), name="subscription") ]