Skip to content

Latest commit

 

History

History
541 lines (369 loc) · 17.8 KB

SchemasApi.md

File metadata and controls

541 lines (369 loc) · 17.8 KB

formkiq_client.SchemasApi

All URIs are relative to http://localhost

Method HTTP request Description
add_classification POST /sites/{siteId}/classifications Add Classification
delete_classification DELETE /sites/{siteId}/classifications/{classificationId} Delete Classification
get_classification GET /sites/{siteId}/classifications/{classificationId} Get Classification
get_sites_classifications GET /sites/{siteId}/classifications Get Sites Classifications
get_sites_schema GET /sites/{siteId}/schema/document Get Sites Schema
set_classification PUT /sites/{siteId}/classifications/{classificationId} Set Classification
set_sites_schema PUT /sites/{siteId}/schema/document Set Sites Schema

add_classification

AddClassificationResponse add_classification(site_id, add_classification_request)

Add Classification

Add Classification

Example

import formkiq_client
from formkiq_client.models.add_classification_request import AddClassificationRequest
from formkiq_client.models.add_classification_response import AddClassificationResponse
from formkiq_client.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 = formkiq_client.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.

# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = formkiq_client.SchemasApi(api_client)
    site_id = 'site_id_example' # str | Site Identifier
    add_classification_request = formkiq_client.AddClassificationRequest() # AddClassificationRequest | 

    try:
        # Add Classification
        api_response = api_instance.add_classification(site_id, add_classification_request)
        print("The response of SchemasApi->add_classification:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SchemasApi->add_classification: %s\n" % e)

Parameters

Name Type Description Notes
site_id str Site Identifier
add_classification_request AddClassificationRequest

Return type

AddClassificationResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_classification

DeleteResponse delete_classification(site_id, classification_id)

Delete Classification

Delete Classification

Example

import formkiq_client
from formkiq_client.models.delete_response import DeleteResponse
from formkiq_client.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 = formkiq_client.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.

# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = formkiq_client.SchemasApi(api_client)
    site_id = 'site_id_example' # str | Site Identifier
    classification_id = 'classification_id_example' # str | Classification Identifier

    try:
        # Delete Classification
        api_response = api_instance.delete_classification(site_id, classification_id)
        print("The response of SchemasApi->delete_classification:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SchemasApi->delete_classification: %s\n" % e)

Parameters

Name Type Description Notes
site_id str Site Identifier
classification_id str Classification Identifier

Return type

DeleteResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_classification

GetClassificationResponse get_classification(site_id, classification_id)

Get Classification

Get Classification

Example

import formkiq_client
from formkiq_client.models.get_classification_response import GetClassificationResponse
from formkiq_client.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 = formkiq_client.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.

# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = formkiq_client.SchemasApi(api_client)
    site_id = 'site_id_example' # str | Site Identifier
    classification_id = 'classification_id_example' # str | Classification Identifier

    try:
        # Get Classification
        api_response = api_instance.get_classification(site_id, classification_id)
        print("The response of SchemasApi->get_classification:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SchemasApi->get_classification: %s\n" % e)

Parameters

Name Type Description Notes
site_id str Site Identifier
classification_id str Classification Identifier

Return type

GetClassificationResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_sites_classifications

GetClassificationsResponse get_sites_classifications(site_id, limit=limit, next=next)

Get Sites Classifications

Gets Sites Classifications

Example

import formkiq_client
from formkiq_client.models.get_classifications_response import GetClassificationsResponse
from formkiq_client.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 = formkiq_client.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.

# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = formkiq_client.SchemasApi(api_client)
    site_id = 'site_id_example' # str | Site Identifier
    limit = '10' # str | Limit Results (optional) (default to '10')
    next = 'next_example' # str | Next page of results token (optional)

    try:
        # Get Sites Classifications
        api_response = api_instance.get_sites_classifications(site_id, limit=limit, next=next)
        print("The response of SchemasApi->get_sites_classifications:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SchemasApi->get_sites_classifications: %s\n" % e)

Parameters

Name Type Description Notes
site_id str Site Identifier
limit str Limit Results [optional] [default to '10']
next str Next page of results token [optional]

Return type

GetClassificationsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_sites_schema

GetSitesSchemaResponse get_sites_schema(site_id)

Get Sites Schema

Gets Sites schema

Example

import formkiq_client
from formkiq_client.models.get_sites_schema_response import GetSitesSchemaResponse
from formkiq_client.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 = formkiq_client.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.

# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = formkiq_client.SchemasApi(api_client)
    site_id = 'site_id_example' # str | Site Identifier

    try:
        # Get Sites Schema
        api_response = api_instance.get_sites_schema(site_id)
        print("The response of SchemasApi->get_sites_schema:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SchemasApi->get_sites_schema: %s\n" % e)

Parameters

Name Type Description Notes
site_id str Site Identifier

Return type

GetSitesSchemaResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

set_classification

SetResponse set_classification(site_id, classification_id, set_classification_request)

Set Classification

Sets Classification

Example

import formkiq_client
from formkiq_client.models.set_classification_request import SetClassificationRequest
from formkiq_client.models.set_response import SetResponse
from formkiq_client.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 = formkiq_client.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.

# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = formkiq_client.SchemasApi(api_client)
    site_id = 'site_id_example' # str | Site Identifier
    classification_id = 'classification_id_example' # str | Classification Identifier
    set_classification_request = formkiq_client.SetClassificationRequest() # SetClassificationRequest | 

    try:
        # Set Classification
        api_response = api_instance.set_classification(site_id, classification_id, set_classification_request)
        print("The response of SchemasApi->set_classification:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SchemasApi->set_classification: %s\n" % e)

Parameters

Name Type Description Notes
site_id str Site Identifier
classification_id str Classification Identifier
set_classification_request SetClassificationRequest

Return type

SetResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

set_sites_schema

SetResponse set_sites_schema(site_id, set_sites_schema_request)

Set Sites Schema

Sets Sites schema

Example

import formkiq_client
from formkiq_client.models.set_response import SetResponse
from formkiq_client.models.set_sites_schema_request import SetSitesSchemaRequest
from formkiq_client.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 = formkiq_client.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.

# Enter a context with an instance of the API client
with formkiq_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = formkiq_client.SchemasApi(api_client)
    site_id = 'site_id_example' # str | Site Identifier
    set_sites_schema_request = formkiq_client.SetSitesSchemaRequest() # SetSitesSchemaRequest | 

    try:
        # Set Sites Schema
        api_response = api_instance.set_sites_schema(site_id, set_sites_schema_request)
        print("The response of SchemasApi->set_sites_schema:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SchemasApi->set_sites_schema: %s\n" % e)

Parameters

Name Type Description Notes
site_id str Site Identifier
set_sites_schema_request SetSitesSchemaRequest

Return type

SetResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 200 OK * Access-Control-Allow-Origin -
* Access-Control-Allow-Methods -
* Access-Control-Allow-Headers -
400 400 OK -

[Back to top] [Back to API list] [Back to Model list] [Back to README]