Skip to content

Routes to ban, unban and edit user needed #34

@singhayushh

Description

@singhayushh

Two routes are to be created:

  1. POST /users/ban/{id} - accessible only for admins. This route should take in user_id as params and update the user's status from verified to banned.
  2. POST /users/unban/{id} - accessible only for admins. This route should take in user_id as params and update the user's status from banned to verified.
  3. POST users/update - accessible for authorized users. This route will allow users to change their name, phone, address and username.

Make sure you use POST instead of PUT as HTML forms do not support methods other than GET and POST.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BackendBackend WorkEasyPoints alloted: 100KSoC’22This issue/pull request will be considered for KSoC’22.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions