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

api/delete-services #108

Open
devalirzayev opened this issue Jun 15, 2023 · 0 comments
Open

api/delete-services #108

devalirzayev opened this issue Jun 15, 2023 · 0 comments
Assignees

Comments

@devalirzayev
Copy link
Member

devalirzayev commented Jun 15, 2023

Endpoint:
api/delete-services - create behind the AuthMiddleware, so it can be only used if user is logged in

Request:

{
    ids: [1,2]
}

ids - array of service ids which should be deleted

Response:

{
    data: {}
}

Possible errors:

  • if authorized user (Request::$user->id) is not owner of any service, You don't have a permission
  • If service not found, Service not found
@devalirzayev devalirzayev changed the title delete service api api/delete-services Jun 15, 2023
@devalirzayev devalirzayev assigned Cavidan03, Karz4 and Sahrux and unassigned Cavidan03 and Karz4 Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants