daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Oct 22nd, 2018 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)/>]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top