You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Students(MethodResource,Resource):
@doc(description='Get student information',tags=['Student'])
@marshal_with(StudentResponseSchema,code='200',description='Returns active student json')
def get(self,email,id=None):
..
@doc(description='Update student nick name and avatar url provided in request body',tags=['Student'])
@use_kwargs(UpdateStudentClassAvatarRequestSchema,location=('json'))
@marshal_with(ResponseSchema,code='200')
def patch(self,id,avatar_url,nick_name,email=None):
..
My issue is Swagger is displaying both get and patch method for every url
Please ignore PATCH /v1/student/last_login/{id}
The text was updated successfully, but these errors were encountered:
I have a resource 'Students' which should have a
App.py
api.add_resource(Students,api_version + '/student/<string:email>','/student/<string:id>')
Students Resource
My issue is Swagger is displaying both get and patch method for every url
Please ignore PATCH /v1/student/last_login/{id}
The text was updated successfully, but these errors were encountered: