mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-21 04:07:09 +00:00
better code injection handling for python
This commit is contained in:
53
samples/client/petstore-security-test/python/docs/FakeApi.md
Normal file
53
samples/client/petstore-security-test/python/docs/FakeApi.md
Normal file
@@ -0,0 +1,53 @@
|
||||
# petstore_api.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 */ ' \" =end
|
||||
|
||||
|
||||
# **test_code_inject____end**
|
||||
> test_code_inject____end(test_code_inject____end=test_code_inject____end)
|
||||
|
||||
To test code injection */ ' \" =end
|
||||
|
||||
### Example
|
||||
```python
|
||||
import time
|
||||
import petstore_api
|
||||
from petstore_api.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = petstore_api.FakeApi()
|
||||
test_code_inject____end = 'test_code_inject____end_example' # str | To test code injection */ ' \" =end (optional)
|
||||
|
||||
try:
|
||||
# To test code injection */ ' \" =end
|
||||
api_instance.test_code_inject____end(test_code_inject____end=test_code_inject____end)
|
||||
except ApiException as e:
|
||||
print "Exception when calling FakeApi->test_code_inject____end: %s\n" % e
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**test_code_inject____end** | **str**| To test code injection */ ' \" =end | [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)
|
||||
|
||||
Reference in New Issue
Block a user