Skip to content

Commit

Permalink
1.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloudmersive committed Dec 26, 2019
1 parent fa4cbb7 commit d106141
Show file tree
Hide file tree
Showing 16 changed files with 1,779 additions and 23 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Convert API lets you effortlessly convert file formats and types.
[Cloudmersive Document and Data Conversion API](https://www.cloudmersive.com/convert-api) provides advanced document conversion, editing and generation capabilities.

- API version: v1
- Package version: 1.6.8
- Package version: 1.6.9


## Requirements
Expand Down Expand Up @@ -98,6 +98,8 @@ Class | Method | HTTP request | Description
*ConvertDataApi* | [**convertDataXmlEditReplaceWithXPath**](docs/Api/ConvertDataApi.md#convertdataxmleditreplacewithxpath) | **POST** /convert/xml/edit/xpath/replace | Replaces XML nodes matching XPath expression with new node
*ConvertDataApi* | [**convertDataXmlEditSetValueWithXPath**](docs/Api/ConvertDataApi.md#convertdataxmleditsetvaluewithxpath) | **POST** /convert/xml/edit/xpath/set-value | Sets the value contents of XML nodes matching XPath expression
*ConvertDataApi* | [**convertDataXmlFilterWithXPath**](docs/Api/ConvertDataApi.md#convertdataxmlfilterwithxpath) | **POST** /convert/xml/select/xpath | Filter, select XML nodes using XPath expression, get results
*ConvertDataApi* | [**convertDataXmlQueryWithXQuery**](docs/Api/ConvertDataApi.md#convertdataxmlquerywithxquery) | **POST** /convert/xml/query/xquery | Query an XML file using XQuery query, get results
*ConvertDataApi* | [**convertDataXmlQueryWithXQueryMulti**](docs/Api/ConvertDataApi.md#convertdataxmlquerywithxquerymulti) | **POST** /convert/xml/query/xquery/multi | Query multiple XML files using XQuery query, get results
*ConvertDataApi* | [**convertDataXmlRemoveWithXPath**](docs/Api/ConvertDataApi.md#convertdataxmlremovewithxpath) | **POST** /convert/xml/edit/xpath/remove | Remove, delete XML nodes and items matching XPath expression
*ConvertDataApi* | [**convertDataXmlToJson**](docs/Api/ConvertDataApi.md#convertdataxmltojson) | **POST** /convert/xml/to/json | Convert XML to JSON conversion
*ConvertDataApi* | [**convertDataXmlTransformWithXsltToXml**](docs/Api/ConvertDataApi.md#convertdataxmltransformwithxslttoxml) | **POST** /convert/xml/transform/xslt/to/xml | Transform XML document file with XSLT into a new XML document
Expand Down Expand Up @@ -338,7 +340,9 @@ Class | Method | HTTP request | Description
- [XlsxWorksheet](docs/Model/XlsxWorksheet.md)
- [XmlAddAttributeWithXPathResult](docs/Model/XmlAddAttributeWithXPathResult.md)
- [XmlAddChildWithXPathResult](docs/Model/XmlAddChildWithXPathResult.md)
- [XmlFIlterWithXPathResult](docs/Model/XmlFIlterWithXPathResult.md)
- [XmlFilterWithXPathResult](docs/Model/XmlFilterWithXPathResult.md)
- [XmlQueryWithXQueryMultiResult](docs/Model/XmlQueryWithXQueryMultiResult.md)
- [XmlQueryWithXQueryResult](docs/Model/XmlQueryWithXQueryResult.md)
- [XmlRemoveAllChildrenWithXPathResult](docs/Model/XmlRemoveAllChildrenWithXPathResult.md)
- [XmlRemoveWithXPathResult](docs/Model/XmlRemoveWithXPathResult.md)
- [XmlReplaceWithXPathResult](docs/Model/XmlReplaceWithXPathResult.md)
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudmersive/cloudmersive_document_convert_api_client",
"version": "1.6.8",
"version": "1.6.9",
"description": "",
"keywords": [
"swagger",
Expand Down
138 changes: 136 additions & 2 deletions docs/Api/ConvertDataApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Method | HTTP request | Description
[**convertDataXmlEditReplaceWithXPath**](ConvertDataApi.md#convertDataXmlEditReplaceWithXPath) | **POST** /convert/xml/edit/xpath/replace | Replaces XML nodes matching XPath expression with new node
[**convertDataXmlEditSetValueWithXPath**](ConvertDataApi.md#convertDataXmlEditSetValueWithXPath) | **POST** /convert/xml/edit/xpath/set-value | Sets the value contents of XML nodes matching XPath expression
[**convertDataXmlFilterWithXPath**](ConvertDataApi.md#convertDataXmlFilterWithXPath) | **POST** /convert/xml/select/xpath | Filter, select XML nodes using XPath expression, get results
[**convertDataXmlQueryWithXQuery**](ConvertDataApi.md#convertDataXmlQueryWithXQuery) | **POST** /convert/xml/query/xquery | Query an XML file using XQuery query, get results
[**convertDataXmlQueryWithXQueryMulti**](ConvertDataApi.md#convertDataXmlQueryWithXQueryMulti) | **POST** /convert/xml/query/xquery/multi | Query multiple XML files using XQuery query, get results
[**convertDataXmlRemoveWithXPath**](ConvertDataApi.md#convertDataXmlRemoveWithXPath) | **POST** /convert/xml/edit/xpath/remove | Remove, delete XML nodes and items matching XPath expression
[**convertDataXmlToJson**](ConvertDataApi.md#convertDataXmlToJson) | **POST** /convert/xml/to/json | Convert XML to JSON conversion
[**convertDataXmlTransformWithXsltToXml**](ConvertDataApi.md#convertDataXmlTransformWithXsltToXml) | **POST** /convert/xml/transform/xslt/to/xml | Transform XML document file with XSLT into a new XML document
Expand Down Expand Up @@ -535,7 +537,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **convertDataXmlFilterWithXPath**
> \Swagger\Client\Model\XmlFIlterWithXPathResult convertDataXmlFilterWithXPath($x_path_expression, $input_file)
> \Swagger\Client\Model\XmlFilterWithXPathResult convertDataXmlFilterWithXPath($x_path_expression, $input_file)
Filter, select XML nodes using XPath expression, get results

Expand Down Expand Up @@ -578,7 +580,7 @@ Name | Type | Description | Notes

### Return type

[**\Swagger\Client\Model\XmlFIlterWithXPathResult**](../Model/XmlFIlterWithXPathResult.md)
[**\Swagger\Client\Model\XmlFilterWithXPathResult**](../Model/XmlFilterWithXPathResult.md)

### Authorization

Expand All @@ -591,6 +593,138 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **convertDataXmlQueryWithXQuery**
> \Swagger\Client\Model\XmlQueryWithXQueryResult convertDataXmlQueryWithXQuery($input_file, $x_query)
Query an XML file using XQuery query, get results

Return the reuslts of querying a single XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for a single XML document as input. Provided XML document is automatically loaded as the default context; to access elements in the document, simply refer to them without a document reference, such as bookstore/book

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');

$apiInstance = new Swagger\Client\Api\ConvertDataApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$input_file = "/path/to/file.txt"; // \SplFileObject | Input XML file to perform the operation on.
$x_query = "x_query_example"; // string | Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported

try {
$result = $apiInstance->convertDataXmlQueryWithXQuery($input_file, $x_query);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConvertDataApi->convertDataXmlQueryWithXQuery: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**input_file** | **\SplFileObject**| Input XML file to perform the operation on. |
**x_query** | **string**| Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported |

### Return type

[**\Swagger\Client\Model\XmlQueryWithXQueryResult**](../Model/XmlQueryWithXQueryResult.md)

### Authorization

[Apikey](../../README.md#Apikey)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json, text/json, application/xml, text/xml

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **convertDataXmlQueryWithXQueryMulti**
> \Swagger\Client\Model\XmlQueryWithXQueryMultiResult convertDataXmlQueryWithXQueryMulti($input_file1, $x_query, $input_file2, $input_file3, $input_file4, $input_file5, $input_file6, $input_file7, $input_file8, $input_file9, $input_file10)
Query multiple XML files using XQuery query, get results

Return the reuslts of querying an XML document with an XQuery expression. Supports XQuery 3.1 and earlier. This API is optimized for multiple XML documents as input. You can refer to the contents of a given document by name, for example doc(\"books.xml\") or doc(\"restaurants.xml\") if you included two input files named books.xml and restaurants.xml. If input files contain no file name, they will default to file names input1.xml, input2.xml and so on.

### Example
```php
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');

$apiInstance = new Swagger\Client\Api\ConvertDataApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$input_file1 = "/path/to/file.txt"; // \SplFileObject | First input XML file to perform the operation on.
$x_query = "x_query_example"; // string | Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported
$input_file2 = "/path/to/file.txt"; // \SplFileObject | Second input XML file to perform the operation on.
$input_file3 = "/path/to/file.txt"; // \SplFileObject | Third input XML file to perform the operation on.
$input_file4 = "/path/to/file.txt"; // \SplFileObject | Fourth input XML file to perform the operation on.
$input_file5 = "/path/to/file.txt"; // \SplFileObject | Fifth input XML file to perform the operation on.
$input_file6 = "/path/to/file.txt"; // \SplFileObject | Sixth input XML file to perform the operation on.
$input_file7 = "/path/to/file.txt"; // \SplFileObject | Seventh input XML file to perform the operation on.
$input_file8 = "/path/to/file.txt"; // \SplFileObject | Eighth input XML file to perform the operation on.
$input_file9 = "/path/to/file.txt"; // \SplFileObject | Ninth input XML file to perform the operation on.
$input_file10 = "/path/to/file.txt"; // \SplFileObject | Tenth input XML file to perform the operation on.

try {
$result = $apiInstance->convertDataXmlQueryWithXQueryMulti($input_file1, $x_query, $input_file2, $input_file3, $input_file4, $input_file5, $input_file6, $input_file7, $input_file8, $input_file9, $input_file10);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ConvertDataApi->convertDataXmlQueryWithXQueryMulti: ', $e->getMessage(), PHP_EOL;
}
?>
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**input_file1** | **\SplFileObject**| First input XML file to perform the operation on. |
**x_query** | **string**| Valid XML XQuery 3.1 or earlier query expression; multi-line expressions are supported |
**input_file2** | **\SplFileObject**| Second input XML file to perform the operation on. | [optional]
**input_file3** | **\SplFileObject**| Third input XML file to perform the operation on. | [optional]
**input_file4** | **\SplFileObject**| Fourth input XML file to perform the operation on. | [optional]
**input_file5** | **\SplFileObject**| Fifth input XML file to perform the operation on. | [optional]
**input_file6** | **\SplFileObject**| Sixth input XML file to perform the operation on. | [optional]
**input_file7** | **\SplFileObject**| Seventh input XML file to perform the operation on. | [optional]
**input_file8** | **\SplFileObject**| Eighth input XML file to perform the operation on. | [optional]
**input_file9** | **\SplFileObject**| Ninth input XML file to perform the operation on. | [optional]
**input_file10** | **\SplFileObject**| Tenth input XML file to perform the operation on. | [optional]

### Return type

[**\Swagger\Client\Model\XmlQueryWithXQueryMultiResult**](../Model/XmlQueryWithXQueryMultiResult.md)

### Authorization

[Apikey](../../README.md#Apikey)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json, text/json, application/xml, text/xml

[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **convertDataXmlRemoveWithXPath**
> \Swagger\Client\Model\XmlRemoveWithXPathResult convertDataXmlRemoveWithXPath($x_path_expression, $input_file)
Expand Down
2 changes: 1 addition & 1 deletion docs/Model/XmlFIlterWithXPathResult.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# XmlFIlterWithXPathResult
# XmlFilterWithXPathResult

## Properties
Name | Type | Description | Notes
Expand Down
12 changes: 12 additions & 0 deletions docs/Model/XmlQueryWithXQueryMultiResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# XmlQueryWithXQueryMultiResult

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**successful** | **bool** | True if the operation was successful, false otherwise | [optional]
**resulting_xml** | **string** | Resulting XML result output | [optional]
**error_message** | **string** | If an error occurs, additional details on the error | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


12 changes: 12 additions & 0 deletions docs/Model/XmlQueryWithXQueryResult.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# XmlQueryWithXQueryResult

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**successful** | **bool** | True if the operation was successful, false otherwise | [optional]
**resulting_xml** | **string** | Resulting XML result output | [optional]
**error_message** | **string** | If an error occurs, additional details on the error | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading

0 comments on commit d106141

Please sign in to comment.