- url(r'^reading/(?P<slug>[a-z0-9-]+)/$', reading_resource, name='api_reading'),
- url(r'^reading/(?P<slug>[a-z0-9-]+)/(?P<state>[a-z]+)/$', reading_resource, name='api_reading'),
- url(r'^shelf/(?P<state>[a-z]+)/$', shelf_resource, name='api_shelf'),
-
- # objects details
- url(r'^books/(?P<book>[a-z0-9-]+)/$', book_resource, name="api_book"),
- url(r'^(?P<category>[a-z0-9-]+)/(?P<slug>[a-z0-9-]+)/$',
- tag_resource, name="api_tag"),
- url(r'^books/(?P<book>[a-z0-9-]+)/fragments/(?P<anchor>[a-z0-9-]+)/$',
- fragment_resource, name="api_fragment"),
+ url(r'^reading/(?P<slug>[a-z0-9-]+)/$', views.BookUserDataView.as_view(), name='api_reading'),
+ url(r'^reading/(?P<slug>[a-z0-9-]+)/(?P<state>[a-z]+)/$', views.BookUserDataView.as_view(), name='api_reading'),
+ url(r'^username/$', views.UserView.as_view(), name='api_username'),