All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
user_profile_get_my_profile | GET /api/manage/v1/UserProfile | Return current profile of the current user |
user_profile_get_user_profile | GET /api/manage/v1/UserProfile/{userId} | Return user profile by user identifier. If the user did not provide information about himself or blocked, then the endpoint will return an empty model. (only id) |
user_profile_update_my_profile | PUT /api/manage/v1/UserProfile | Update profile of the current user |
UserProfileVM user_profile_get_my_profile()
Return current profile of the current user
- Basic Authentication (ApiKey):
from __future__ import print_function
import time
import fastreport_cloud_sdk
from fastreport_cloud_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = fastreport_cloud_sdk.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: ApiKey
configuration = fastreport_cloud_sdk.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure Bearer authorization (JWT): JWT
configuration = fastreport_cloud_sdk.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with fastreport_cloud_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fastreport_cloud_sdk.UserProfileApi(api_client)
try:
# Return current profile of the current user
api_response = api_instance.user_profile_get_my_profile()
pprint(api_response)
except ApiException as e:
print("Exception when calling UserProfileApi->user_profile_get_my_profile: %s\n" % e)
- Bearer (JWT) Authentication (JWT):
from __future__ import print_function
import time
import fastreport_cloud_sdk
from fastreport_cloud_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = fastreport_cloud_sdk.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: ApiKey
configuration = fastreport_cloud_sdk.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure Bearer authorization (JWT): JWT
configuration = fastreport_cloud_sdk.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with fastreport_cloud_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fastreport_cloud_sdk.UserProfileApi(api_client)
try:
# Return current profile of the current user
api_response = api_instance.user_profile_get_my_profile()
pprint(api_response)
except ApiException as e:
print("Exception when calling UserProfileApi->user_profile_get_my_profile: %s\n" % e)
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Succesfully returned | - |
400 | Bad Request | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserProfileVM user_profile_get_user_profile(user_id)
Return user profile by user identifier. If the user did not provide information about himself or blocked, then the endpoint will return an empty model. (only id)
- Basic Authentication (ApiKey):
from __future__ import print_function
import time
import fastreport_cloud_sdk
from fastreport_cloud_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = fastreport_cloud_sdk.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: ApiKey
configuration = fastreport_cloud_sdk.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure Bearer authorization (JWT): JWT
configuration = fastreport_cloud_sdk.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with fastreport_cloud_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fastreport_cloud_sdk.UserProfileApi(api_client)
user_id = 'user_id_example' # str |
try:
# Return user profile by user identifier. If the user did not provide information about himself or blocked, then the endpoint will return an empty model. (only id)
api_response = api_instance.user_profile_get_user_profile(user_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserProfileApi->user_profile_get_user_profile: %s\n" % e)
- Bearer (JWT) Authentication (JWT):
from __future__ import print_function
import time
import fastreport_cloud_sdk
from fastreport_cloud_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = fastreport_cloud_sdk.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: ApiKey
configuration = fastreport_cloud_sdk.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure Bearer authorization (JWT): JWT
configuration = fastreport_cloud_sdk.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with fastreport_cloud_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fastreport_cloud_sdk.UserProfileApi(api_client)
user_id = 'user_id_example' # str |
try:
# Return user profile by user identifier. If the user did not provide information about himself or blocked, then the endpoint will return an empty model. (only id)
api_response = api_instance.user_profile_get_user_profile(user_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling UserProfileApi->user_profile_get_user_profile: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
user_id | str |
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Succesfully returned | - |
404 | User not found | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
user_profile_update_my_profile(update_user_profile_vm=update_user_profile_vm)
Update profile of the current user
This method is only allowed for local sign in via intranet
- Basic Authentication (ApiKey):
from __future__ import print_function
import time
import fastreport_cloud_sdk
from fastreport_cloud_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = fastreport_cloud_sdk.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: ApiKey
configuration = fastreport_cloud_sdk.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure Bearer authorization (JWT): JWT
configuration = fastreport_cloud_sdk.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with fastreport_cloud_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fastreport_cloud_sdk.UserProfileApi(api_client)
update_user_profile_vm = fastreport_cloud_sdk.UpdateUserProfileVM() # UpdateUserProfileVM | (optional)
try:
# Update profile of the current user
api_instance.user_profile_update_my_profile(update_user_profile_vm=update_user_profile_vm)
except ApiException as e:
print("Exception when calling UserProfileApi->user_profile_update_my_profile: %s\n" % e)
- Bearer (JWT) Authentication (JWT):
from __future__ import print_function
import time
import fastreport_cloud_sdk
from fastreport_cloud_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = fastreport_cloud_sdk.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: ApiKey
configuration = fastreport_cloud_sdk.Configuration(
username = 'YOUR_USERNAME',
password = 'YOUR_PASSWORD'
)
# Configure Bearer authorization (JWT): JWT
configuration = fastreport_cloud_sdk.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with fastreport_cloud_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = fastreport_cloud_sdk.UserProfileApi(api_client)
update_user_profile_vm = fastreport_cloud_sdk.UpdateUserProfileVM() # UpdateUserProfileVM | (optional)
try:
# Update profile of the current user
api_instance.user_profile_update_my_profile(update_user_profile_vm=update_user_profile_vm)
except ApiException as e:
print("Exception when calling UserProfileApi->user_profile_update_my_profile: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
update_user_profile_vm | UpdateUserProfileVM | [optional] |
void (empty response body)
- Content-Type: application/json, text/json, application/*+json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
204 | No Content | - |
400 | The reqeust is wrong | - |
200 | Succesfully updated | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]