csle_rest_api.resources.users package

Submodules

csle_rest_api.resources.users.routes module

Routes and sub-resources for the /users resource

csle_rest_api.resources.users.routes.create_user() Tuple[flask.wrappers.Response, int][source]

The /users/create resource.

Returns

creates a new user

csle_rest_api.resources.users.routes.user(user_id: int) Tuple[flask.wrappers.Response, int][source]

The /users/id resource.

Parameters

user_id – the id of the user

Returns

The given user or deletes the user

csle_rest_api.resources.users.routes.users() Tuple[flask.wrappers.Response, int][source]

The /users resource.

Returns

A list of management users or a list of ids of the users or deletes all users

csle_rest_api.resources.users.routes.users_ids() Tuple[flask.wrappers.Response, int][source]

Gets the user ids

Returns

An HTTP response with all user ids

Module contents