Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> from tastypie.api import Api
- >>>
- >>> api = Api(api_name="v1")
- >>> api.register(TestResource())
- >>> api.urls
- [<RegexURLPattern api_v1_top_level ^(?P<api_name>v1)/$>,
- <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