wing328 394840e352 Add more security samples (#3344)
* add line break test to petstore-security-test.yaml

* add objc/swift security testing

* add go,scala,qt5cpp for security test

* add security test for typescript

* fix go security issue, fix consumes,produces line break
2016-07-12 19:51:28 +08:00

1.8 KiB

SWGFakeApi

All URIs are relative to *https://petstore.swagger.io / ' " =end \r\n \n \r/v2 */ ' " =end \r\n \n \r

Method HTTP request Description
testCodeInjectEndRnNR PUT /fake To test code injection *_/ ' " =end \r\n \n \r

testCodeInjectEndRnNR

-(NSNumber*) testCodeInjectEndRnNRWithTestCodeInjectEndRnNR: (NSString*) testCodeInjectEndRnNR
        completionHandler: (void (^)(NSError* error)) handler;

To test code injection *_/ ' " =end \r\n \n \r

Example


NSString* testCodeInjectEndRnNR = @"testCodeInjectEndRnNR_example"; // To test code injection *_/ ' \" =end \\r\\n \\n \\r (optional)

SWGFakeApi*apiInstance = [[SWGFakeApi alloc] init];

// To test code injection *_/ ' \" =end \\r\\n \\n \\r
[apiInstance testCodeInjectEndRnNRWithTestCodeInjectEndRnNR:testCodeInjectEndRnNR
          completionHandler: ^(NSError* error) {
                        if (error) {
                            NSLog(@"Error calling SWGFakeApi->testCodeInjectEndRnNR: %@", error);
                        }
                    }];

Parameters

Name Type Description Notes
testCodeInjectEndRnNR NSString* To test code injection *_/ ' " =end \r\n \n \r [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] [Back to Model list] [Back to README]