Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosmic-byte/flask-restplus-boilerplate
/ functions
Functions
47 in github.com/cosmic-byte/flask-restplus-boilerplate
⨍
Functions
47
◇
Types & classes
19
↳
Endpoints
1
↓ 7 callers
Method
get
get a user given its identifier
app/main/controller/user_controller.py:37
↓ 6 callers
Function
register_user
(self)
app/test/test_auth.py:9
↓ 4 callers
Method
encode_auth_token
Generates the Auth Token :return: string
app/main/model/user.py:34
↓ 4 callers
Function
login_user
(self)
app/test/test_auth.py:21
↓ 4 callers
Method
post
Creates a new User
app/main/controller/user_controller.py:25
↓ 3 callers
Method
decode_auth_token
Decodes the auth token :param auth_token: :return: integer|string
app/main/model/user.py:54
↓ 2 callers
Method
get_logged_in_user
(new_request)
app/main/service/auth_helper.py:62
↓ 1 callers
Method
check_blacklist
(auth_token: str)
app/main/model/blacklist.py:23
↓ 1 callers
Method
check_password
(self, password: str)
app/main/model/user.py:30
↓ 1 callers
Function
create_app
(config_name: str)
app/main/__init__.py:12
↓ 1 callers
Function
generate_token
(user: User)
app/main/service/user_service.py:37
↓ 1 callers
Function
get_a_user
(public_id)
app/main/service/user_service.py:33
↓ 1 callers
Function
get_all_users
()
app/main/service/user_service.py:29
↓ 1 callers
Method
login_user
(data: Dict[str, str])
app/main/service/auth_helper.py:9
↓ 1 callers
Method
logout_user
(data: str)
app/main/service/auth_helper.py:38
↓ 1 callers
Function
save_changes
(data: User)
app/main/service/user_service.py:55
↓ 1 callers
Function
save_new_user
(data: Dict[str, str])
app/main/service/user_service.py:9
↓ 1 callers
Function
save_token
(token: str)
app/main/service/blacklist_service.py:7
Method
__init__
(self, token)
app/main/model/blacklist.py:15
Method
__repr__
(self)
app/main/model/user.py:72
Method
__repr__
(self)
app/main/model/blacklist.py:19
Function
admin_token_required
(f: Callable)
app/main/util/decorator.py:24
Method
create_app
(self)
app/test/test_config.py:12
Method
create_app
(self)
app/test/test_config.py:26
Method
create_app
(self)
app/test/test_config.py:39
Method
create_app
(self)
app/test/base.py:11
Function
decorated
(*args, **kwargs)
app/main/util/decorator.py:11
Method
get
List all registered users
app/main/controller/user_controller.py:18
Method
password
(self)
app/main/model/user.py:23
Method
post
(self)
app/main/controller/auth_controller.py:19
Method
post
(self)
app/main/controller/auth_controller.py:31
Function
run
()
manage.py:24
Method
setUp
(self)
app/test/base.py:15
Method
tearDown
(self)
app/test/base.py:19
Function
test
Runs the unit tests.
manage.py:29
Method
test_app_is_development
(self)
app/test/test_config.py:16
Method
test_app_is_production
(self)
app/test/test_config.py:43
Method
test_app_is_testing
(self)
app/test/test_config.py:30
Method
test_decode_auth_token
(self)
app/test/test_user_model.py:23
Method
test_encode_auth_token
(self)
app/test/test_user_model.py:12
Method
test_non_registered_user_login
Test for login of non-registered user
app/test/test_auth.py:78
Method
test_registered_user_login
Test for login of registered-user login
app/test/test_auth.py:56
Method
test_registered_with_already_registered_user
Test registration with already registered email
app/test/test_auth.py:44
Method
test_registration
Test for user registration
app/test/test_auth.py:33
Method
test_valid_blacklisted_token_logout
Test for logout after a valid token gets blacklisted
app/test/test_auth.py:123
Method
test_valid_logout
Test for logout before token expires
app/test/test_auth.py:89
Function
token_required
(f)
app/main/util/decorator.py:9