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
Functions
Generate multipart form data method which is callable from swift
Generate multipart form data method which is callable from swift and Objective-C
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 method which is callable from swift and Objective-C
Replace parameters of route with swift syntax Example: iex> replace_param(“/users/:id/hoge”) “/users/(id)/hoge”
Callback implementation for c:Mix.Task.run/1
.