//
// FakeAPI.swift
//
// Generated by swagger-codegen
// https://github.com/swagger-api/swagger-codegen
//

import Alamofire



public class FakeAPI: APIBase {
    /**
     To test code injection *_/ ' \" =end \\r\\n \\n \\r
     
     - parameter testCodeInjectEndRnNR: (form) To test code injection *_/ &#39; \&quot; &#x3D;end \\r\\n \\n \\r (optional)
     - parameter completion: completion handler to receive the data and the error objects
     */
    public class func testCodeInjectEndRnNR(testCodeInjectEndRnNR testCodeInjectEndRnNR: String? = nil, completion: ((error: ErrorType?) -> Void)) {
        testCodeInjectEndRnNRWithRequestBuilder(testCodeInjectEndRnNR: testCodeInjectEndRnNR).execute { (response, error) -> Void in
            completion(error: error);
        }
    }


    /**
     To test code injection *_/ ' \" =end \\r\\n \\n \\r
     - PUT /fake
     
     - parameter testCodeInjectEndRnNR: (form) To test code injection *_/ &#39; \&quot; &#x3D;end \\r\\n \\n \\r (optional)

     - returns: RequestBuilder<Void> 
     */
    public class func testCodeInjectEndRnNRWithRequestBuilder(testCodeInjectEndRnNR testCodeInjectEndRnNR: String? = nil) -> RequestBuilder<Void> {
        let path = "/fake"
        let URLString = SwaggerClientAPI.basePath + path

        let nillableParameters: [String:AnyObject?] = [
            "test code inject */ &#39; &quot; &#x3D;end \r\n \n \r": testCodeInjectEndRnNR
        ]
 
        let parameters = APIHelper.rejectNil(nillableParameters)
 
        let convertedParameters = APIHelper.convertBoolToString(parameters)
 
        let requestBuilder: RequestBuilder<Void>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder()

        return requestBuilder.init(method: "PUT", URLString: URLString, parameters: convertedParameters, isBody: false)
    }

}
