OpServ-Monitoring/opserv-backend

View on GitHub
app/server/apis/rest/users/endpoint_users.py

Summary

Maintainability
A
0 mins
Test Coverage
from server.apis.authenticated_endpoint import AuthenticatedEndpoint


class EndpointUsers(AuthenticatedEndpoint):
    def get(self):
        print("get")
        # If not manage_users
        #   Show only self
        # else
        #   Show all users
        pass

    def post(self):
        print("post")
        # If not manage_users
        #   403
        # else
        #   Add user
        pass