Guest User

Untitled

a guest
Oct 22nd, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. >>> from tastypie.api import Api
  2. >>>
  3. >>> api = Api(api_name="v1")
  4. >>> api.register(TestResource())
  5. >>> api.urls
  6. [<RegexURLPattern api_v1_top_level ^(?P<api_name>v1)/$>,
  7. <RegexURLResolver [<RegexURLPattern apimethod_first_add_method ^(?P<resource_name>test)/first_add_method/$>, <RegexURLPattern apimethod_test_func ^(?P<resource_name>test)/test_func/$>, <RegexURLPattern api_dispatch_list ^(?P<resource_name>test)/$>, <RegexURLPattern api_get_schema ^(?P<resource_name>test)/schema/$>, <RegexURLPattern api_get_multiple ^(?P<resource_name>test)/set/(?P<pk_list>\w[\w/;-]*)/$>, <RegexURLPattern api_dispatch_detail ^(?P<resource_name>test)/(?P<pk>\w[\w/-]*)/$>] (None:None) ^(?P<api_name>v1)/>]
Add Comment
Please, Sign In to add comment