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
extract parameters from route.
Example: iex> extract_param(“/users/:id/show”) %{“param” => “id”}
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)
Callback implementation for c:Mix.Task.run/1
.