mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 11:52:44 +00:00
better code injectino handling for perl client
This commit is contained in:
55
samples/client/petstore-security-test/perl/docs/FakeApi.md
Normal file
55
samples/client/petstore-security-test/perl/docs/FakeApi.md
Normal file
@@ -0,0 +1,55 @@
|
||||
# WWW::SwaggerClient::FakeApi
|
||||
|
||||
## Load the API package
|
||||
```perl
|
||||
use WWW::SwaggerClient::Object::FakeApi;
|
||||
```
|
||||
|
||||
All URIs are relative to *https://petstore.swagger.io */ ' " =end/v2 */ ' " =end*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**test_code_inject____end**](FakeApi.md#test_code_inject____end) | **PUT** /fake | To test code injection */ ' \"
|
||||
|
||||
|
||||
# **test_code_inject____end**
|
||||
> test_code_inject____end(test code inject */ ' " =end => $test code inject */ ' " =end)
|
||||
|
||||
To test code injection */ ' \"
|
||||
|
||||
### Example
|
||||
```perl
|
||||
use Data::Dumper;
|
||||
|
||||
my $api_instance = WWW::SwaggerClient::FakeApi->new();
|
||||
my $test code inject */ ' " =end = 'test code inject */ ' " =end_example'; # string | To test code injection */ ' \"
|
||||
|
||||
eval {
|
||||
$api_instance->test_code_inject____end(test code inject */ ' " =end => $test code inject */ ' " =end);
|
||||
};
|
||||
if ($@) {
|
||||
warn "Exception when calling FakeApi->test_code_inject____end: $@\n";
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**test code inject */ ' " =end** | **string**| To test code injection */ ' \" | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json, */ " =end
|
||||
- **Accept**: application/json, */ " =end
|
||||
|
||||
[[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)
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# WWW::SwaggerClient::Object::ModelReturn
|
||||
|
||||
## Load the model package
|
||||
```perl
|
||||
use WWW::SwaggerClient::Object::ModelReturn;
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**return** | **int** | property description */ ' \" | [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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user