Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUT | /agents/agentId | edit user(Back End) #10

Closed
muhammadharoun opened this issue Oct 24, 2021 · 0 comments · Fixed by #67
Closed

PUT | /agents/agentId | edit user(Back End) #10

muhammadharoun opened this issue Oct 24, 2021 · 0 comments · Fixed by #67

Comments

@muhammadharoun
Copy link
Collaborator

muhammadharoun commented Oct 24, 2021

Update User data

Title: PUT | /users/:userId`

Description
this endpoint for updating users data is protected and only user can his profile

Protected: Yes

Required middlewares: isAuth


Response:

Error :

    {
        status : 401,
        message : 'Unautorized'
    }

Success

 {
     status : 200,
     data : {
         id : 1,
         name : 'sameer',
         Phone:'05900000000',
         image : 'image url',
         Email:'[email protected]',
         location:'Gaza'
      }
 }

Request body:

{
        name : 'sameer',
        Phone:'05900000000',
        image : 'image url',
        Email:'[email protected]',
        location:'Gaza'

}

Validation

{
        name : [string],
        Phone:[phone number],
        image : [url],
        Email:'[email],
        location:[string]
}

@ElhamFadel ElhamFadel changed the title PUT | /users/:userId | edit user(Back End) PUT | /agents/agentId | edit user(Back End) Oct 29, 2021
ElhamFadel added a commit that referenced this issue Oct 31, 2021
ElhamFadel added a commit that referenced this issue Oct 31, 2021
ElhamFadel added a commit that referenced this issue Oct 31, 2021
ElhamFadel added a commit that referenced this issue Oct 31, 2021
ElhamFadel added a commit that referenced this issue Oct 31, 2021
ElhamFadel added a commit that referenced this issue Oct 31, 2021
@ElhamFadel ElhamFadel linked a pull request Oct 31, 2021 that will close this issue
ElhamFadel added a commit that referenced this issue Nov 2, 2021
ElhamFadel added a commit that referenced this issue Nov 3, 2021
ElhamFadel added a commit that referenced this issue Nov 3, 2021
ElhamFadel added a commit that referenced this issue Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants