All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| get_github_map_v2_get_github_map_get | GET /v2/get-github-map | Get Github Map |
| list_github_maps_v2_list_github_maps_get | GET /v2/list-github-maps | List Github Maps |
| open_map_v2_openmap_get | GET /v2/openmap | Open Map |
| privacy_statement_v2_privacy_get | GET /v2/privacy | Privacy Statement |
MapTextAndWarnings get_github_map_v2_get_github_map_get(github_path)
Get Github Map
API endpoint to get the content of a file in the GitHub repository and return warnings. :param github_path: Full path of the file to retrieve. :return: Content of the file and warnings.
import time
import WardleyCrewAPI
from WardleyCrewAPI.api import tools_api
from WardleyCrewAPI.model.http_validation_error import HTTPValidationError
from WardleyCrewAPI.model.map_text_and_warnings import MapTextAndWarnings
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 = WardleyCrewAPI.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with WardleyCrewAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = tools_api.ToolsApi(api_client)
github_path = "github_path_example" # str | The full path of the file to retrieve
# example passing only required values which don't have defaults set
try:
# Get Github Map
api_response = api_instance.get_github_map_v2_get_github_map_get(github_path)
pprint(api_response)
except WardleyCrewAPI.ApiException as e:
print("Exception when calling ToolsApi->get_github_map_v2_get_github_map_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| github_path | str | The full path of the file to retrieve |
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[str] list_github_maps_v2_list_github_maps_get()
List Github Maps
API endpoint to list all relevant files in the GitHub repository. :return: List of file paths.
import time
import WardleyCrewAPI
from WardleyCrewAPI.api import tools_api
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 = WardleyCrewAPI.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with WardleyCrewAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = tools_api.ToolsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
# List Github Maps
api_response = api_instance.list_github_maps_v2_list_github_maps_get()
pprint(api_response)
except WardleyCrewAPI.ApiException as e:
print("Exception when calling ToolsApi->list_github_maps_v2_list_github_maps_get: %s\n" % e)This endpoint does not need any parameter.
[str]
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
bool, date, datetime, dict, float, int, list, str, none_type open_map_v2_openmap_get(url)
Open Map
API endpoint to open a Wardley Map from a GitHub URL. :param url: The GitHub URL of the Wardley Map. :return: RedirectResponse to the edit URL of the saved map.
import time
import WardleyCrewAPI
from WardleyCrewAPI.api import tools_api
from WardleyCrewAPI.model.http_validation_error import HTTPValidationError
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 = WardleyCrewAPI.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with WardleyCrewAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = tools_api.ToolsApi(api_client)
url = "url_example" # str |
# example passing only required values which don't have defaults set
try:
# Open Map
api_response = api_instance.open_map_v2_openmap_get(url)
pprint(api_response)
except WardleyCrewAPI.ApiException as e:
print("Exception when calling ToolsApi->open_map_v2_openmap_get: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| url | str |
bool, date, datetime, dict, float, int, list, str, none_type
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
| 422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
str privacy_statement_v2_privacy_get()
Privacy Statement
API endpoint to provide the privacy statement. :return: The privacy statement as a string.
import time
import WardleyCrewAPI
from WardleyCrewAPI.api import tools_api
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 = WardleyCrewAPI.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with WardleyCrewAPI.ApiClient() as api_client:
# Create an instance of the API class
api_instance = tools_api.ToolsApi(api_client)
# example, this endpoint has no required or optional parameters
try:
# Privacy Statement
api_response = api_instance.privacy_statement_v2_privacy_get()
pprint(api_response)
except WardleyCrewAPI.ApiException as e:
print("Exception when calling ToolsApi->privacy_statement_v2_privacy_get: %s\n" % e)This endpoint does not need any parameter.
str
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]