File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -119,19 +119,19 @@ class RESTView(APIView, metaclass=RESTViewMetaclass):
119
119
Example:
120
120
class UserAPI(RESTView):
121
121
122
- @get(path='/ v1/users/', url_name='users')
122
+ @get(path='v1/users/', url_name='users')
123
123
def list(self, request):
124
124
...
125
125
126
- @get(path='/ v1/users/<int:user_id>/', url_name='user_detail')
126
+ @get(path='v1/users/<int:user_id>/', url_name='user_detail')
127
127
def retrieve(self, request, user_id: int):
128
128
...
129
129
130
- @post(path='/ v1/users/', url_name='users')
130
+ @post(path='v1/users/', url_name='users')
131
131
def create(self, request):
132
132
...
133
133
134
- @patch(path='/ v1/users/<int:user_id>/change_password/', url_name='user_change_password')
134
+ @patch(path='v1/users/<int:user_id>/change_password/', url_name='user_change_password')
135
135
def change_password(self, request, user_id: int):
136
136
...
137
137
You can’t perform that action at this time.
0 commit comments