All URIs are relative to https://localhost
| Method | HTTP request | Description |
|---|---|---|
| get_config | GET /vuejs/config | Return the current configuration |
| get_extension | GET /vuejs/extension/js/{module}.js | Return the front Vue JS extension file to include |
| get_extension_style | GET /vuejs/extension/css/{module}.css | Return the front Vue JS extension css file to include |
| get_theme_config | GET /vuejs/theme/{moduleId}/{themeId}/config | Return the front Vue JS theme configuration |
| get_theme_css | GET /vuejs/theme/{moduleId}/{themeId}/style.css | Return the theme css file |
| get_theme_resource | GET /vuejs/theme/{moduleId}/{themeId}/resource | Return the theme requested resource |
| get_user_config | GET /vuejs/user_config | Return the user-specific configuration |
FrontConfigDTO get_config(accept_language=accept_language)
Return the current configuration
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.VueJsApi(pythonClient)
try:
# Return the current configuration
api_response = api_instance.get_config()
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling VueJsApi->get_config: %s\n" % e)| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
file get_extension(module)
Return the front Vue JS extension file to include
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.VueJsApi(pythonClient)
module = 'opensilex' # str | Module identifier
try:
# Return the front Vue JS extension file to include
api_response = api_instance.get_extension(module)
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling VueJsApi->get_extension: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| module | str | Module identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
file get_extension_style(module)
Return the front Vue JS extension css file to include
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.VueJsApi(pythonClient)
module = 'opensilex' # str | Module identifier
try:
# Return the front Vue JS extension css file to include
api_response = api_instance.get_extension_style(module)
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling VueJsApi->get_extension_style: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| module | str | Module identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ThemeConfigDTO get_theme_config(module_id, theme_id)
Return the front Vue JS theme configuration
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.VueJsApi(pythonClient)
module_id = 'opensilex-front' # str | Module identifier
theme_id = 'phis' # str | Theme identifier
try:
# Return the front Vue JS theme configuration
api_response = api_instance.get_theme_config(module_id, theme_id)
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling VueJsApi->get_theme_config: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| module_id | str | Module identifier | |
| theme_id | str | Theme identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
file get_theme_css(module_id, theme_id)
Return the theme css file
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.VueJsApi(pythonClient)
module_id = 'opensilex-front' # str | Module identifier
theme_id = 'phis' # str | Theme identifier
try:
# Return the theme css file
api_response = api_instance.get_theme_css(module_id, theme_id)
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling VueJsApi->get_theme_css: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| module_id | str | Module identifier | |
| theme_id | str | Theme identifier |
No authorization required
- Content-Type: Not defined
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
file get_theme_resource(module_id, theme_id, file_path=file_path, accepted_extensions=accepted_extensions)
Return the theme requested resource
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.VueJsApi(pythonClient)
module_id = 'opensilex-front' # str | Module identifier
theme_id = 'phis' # str | Theme identifier
file_path = 'images/opensilex.png' # str | Resource path (optional)
accepted_extensions = ['png'] # list[str] | List of supported file extensions (optional)
try:
# Return the theme requested resource
api_response = api_instance.get_theme_resource(module_id, theme_id, file_path=file_path, accepted_extensions=accepted_extensions)
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling VueJsApi->get_theme_resource: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| module_id | str | Module identifier | |
| theme_id | str | Theme identifier | |
| file_path | str | Resource path | [optional] |
| accepted_extensions | list[str] | List of supported file extensions | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserFrontConfigDTO get_user_config(accept_language=accept_language)
Return the user-specific configuration
from __future__ import print_function
import time
import opensilexClientToolsPython
from opensilexClientToolsPython.rest import ApiException
from pprint import pprint
# create an instance of the API class
pythonClient = opensilexClientToolsPython.ApiClient()
pythonClient.connect_to_opensilex_ws(identifier="guest@opensilex.org",password="guest",host="https://localhost")
api_instance = opensilexClientToolsPython.VueJsApi(pythonClient)
try:
# Return the user-specific configuration
api_response = api_instance.get_user_config()
pprint(api_response)
except opensilexClientToolsPython.rest.ApiException as e:
print("Exception when calling VueJsApi->get_user_config: %s\n" % e)| Name | Type | Description | Notes |
|---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]