-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Description
I have a resource 'Students' which should have a
- GET method and url for that will have a path variable email
- PATCH method and url for that will have a path variable id
App.py
api.add_resource(Students,api_version + '/student/<string:email>','/student/<string:id>')
Students Resource
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}
Metadata
Metadata
Assignees
Labels
No labels