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

DELETE | /estate/:estateId #7

Closed
mohammedsalah7 opened this issue Oct 24, 2021 · 0 comments · Fixed by #35
Closed

DELETE | /estate/:estateId #7

mohammedsalah7 opened this issue Oct 24, 2021 · 0 comments · Fixed by #35

Comments

@mohammedsalah7
Copy link
Collaborator

mohammedsalah7 commented Oct 24, 2021

Delete house by estate id

Description
Delete estate and check if the user has access to the post or if he is an admin

Protected: Yes

Required middleware's: isAuth, isAdmin


Response:

Error :

    {
        status : 401,
        message : 'Unauthorized'
    }

Success

 {
     status: 200,
     message: 'Estate deleted successfully'
 }

Tests: test all potential causes for the route itself.

ElhamFadel added a commit that referenced this issue Oct 28, 2021
ElhamFadel added a commit that referenced this issue Oct 28, 2021
ElhamFadel added a commit that referenced this issue Oct 28, 2021
ElhamFadel added a commit that referenced this issue Oct 28, 2021
@ElhamFadel ElhamFadel linked a pull request Oct 28, 2021 that will close this issue
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.

2 participants