Mix.Tasks.Nativegen.Swift.Method

Append request method to existing client code.

Example

mix nativegen.swift.method post /api/chat/response responseMessage Chat thread_id:integer message:string

Summary

append_file(content, path)
generate_content(list1, opts)
generate_multipart(objc, route, method_name, response_type)
generate_multipart_method(route, method_name, response_type)

Generate multipart form data method which is callable from swift

generate_multipart_objc_method(route, method_name, response_type)

Generate multipart form data method which is callable from swift and Objective-C

generate_normal(objc, http_method, route, method_name, response_type, params)
generate_objc_method(http_method, route, method_name, response_type, params, opts \\ [])
generate_objc_method(request_method, http_method, route, method_name, response_type, params, opts)
generate_swift_method(http_method, route, method_name, response_type, params, opts \\ [])
generate_swift_method(request_method, http_method, route, method_name, response_type, params, opts)
generate_upload_file(objc, route, method_name, response_type)
generate_upload_method(route, method_name, response_type)
generate_upload_objc_method(route, method_name, response_type)

Generate upload file method which is callable from swift and Objective-C

generate_upload_stream(objc, route, method_name, response_type)
generate_upload_stream_method(route, method_name, response_type)
generate_upload_stream_objc_method(route, method_name, response_type)
multipart_request_method(response_type)
objc_switch(objc, route, method_name, response_type, on_objc, on_swift)
replace_param(method_name)

Replace parameters of route with swift syntax Example: iex> replace_param(“/users/:id/hoge”) “/users/(id)/hoge”

request_method(response_type)
run(args)

Callback implementation for c:Mix.Task.run/1

show_on_shell(content)
upload_request_method(arg1)
upload_stream_method(arg1)

Functions

append_file(content, path)
generate_content(list1, opts)
generate_multipart(objc, route, method_name, response_type)
generate_multipart_method(route, method_name, response_type)

Generate multipart form data method which is callable from swift

generate_multipart_objc_method(route, method_name, response_type)

Generate multipart form data method which is callable from swift and Objective-C

generate_normal(objc, http_method, route, method_name, response_type, params)
generate_objc_method(http_method, route, method_name, response_type, params, opts \\ [])
generate_objc_method(request_method, http_method, route, method_name, response_type, params, opts)
generate_swift_method(http_method, route, method_name, response_type, params, opts \\ [])
generate_swift_method(request_method, http_method, route, method_name, response_type, params, opts)
generate_upload_file(objc, route, method_name, response_type)
generate_upload_method(route, method_name, response_type)
generate_upload_objc_method(route, method_name, response_type)

Generate upload file method which is callable from swift and Objective-C

generate_upload_stream(objc, route, method_name, response_type)
generate_upload_stream_method(route, method_name, response_type)
generate_upload_stream_objc_method(route, method_name, response_type)
multipart_request_method(response_type)
objc_switch(objc, route, method_name, response_type, on_objc, on_swift)
replace_param(method_name)

Replace parameters of route with swift syntax Example: iex> replace_param(“/users/:id/hoge”) “/users/(id)/hoge”

request_method(response_type)
run(args)

Callback implementation for c:Mix.Task.run/1.

show_on_shell(content)
upload_request_method(arg1)
upload_stream_method(arg1)