File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,37 @@ paths:
4242 security :
4343 - JWT : []
4444 x-swagger-router-controller : " User"
45+ put :
46+ tags :
47+ - " User"
48+ summary : " edit user details"
49+ operationId : " userPUT"
50+ parameters :
51+ - in : " body"
52+ name : " data"
53+ description : " user data"
54+ required : true
55+ schema :
56+ type : " object"
57+ responses :
58+ 200 :
59+ description : " user has been edited"
60+ schema :
61+ type : " object"
62+ properties : {}
63+ 401 :
64+ description : Invalid authentication credentials.
65+ 403 :
66+ description : Permission 'xxx' denied on file 'yyy'.
67+ 404 :
68+ description : Permission 'xxx' denied on file 'yyy'.
69+ 409 :
70+ description : Resource 'xxx' already exists.
71+ 500 :
72+ description : Internal Server Error.
73+ security :
74+ - JWT : []
75+ x-swagger-router-controller : " User"
4576 /user/me/courses :
4677 get :
4778 tags :
@@ -108,37 +139,6 @@ paths:
108139 security :
109140 - JWT : []
110141 x-swagger-router-controller : " User"
111- put :
112- tags :
113- - " User"
114- summary : " edit user details"
115- operationId : " userPUT"
116- parameters :
117- - in : " body"
118- name : " data"
119- description : " user data"
120- required : true
121- schema :
122- type : " object"
123- responses :
124- 200 :
125- description : " user has been edited"
126- schema :
127- type : " object"
128- properties : {}
129- 401 :
130- description : Invalid authentication credentials.
131- 403 :
132- description : Permission 'xxx' denied on file 'yyy'.
133- 404 :
134- description : Permission 'xxx' denied on file 'yyy'.
135- 409 :
136- description : Resource 'xxx' already exists.
137- 500 :
138- description : Internal Server Error.
139- security :
140- - JWT : []
141- x-swagger-router-controller : " User"
142142 /categories :
143143 get :
144144 tags :
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ describe('User', () => {
7777 } ) ;
7878 it ( "it should update John Doe's Name to John Although" , ( done ) => {
7979 chai . request ( server )
80- . put ( '/v1/user' )
80+ . put ( '/v1/user/me ' )
8181 . set ( 'authorization' , 'Bearer ' + authToken )
8282 . send ( { teil_nachname : "Although" } )
8383 . end ( ( err , res ) => {
You can’t perform that action at this time.
0 commit comments