From 2228b65000e9ec51792fd73129b0d9a503174135 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Tue, 12 Jan 2021 15:08:15 -0500 Subject: [PATCH] [O] Write documentation for createUrl() --- ProjectClock/Net.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ProjectClock/Net.swift b/ProjectClock/Net.swift index 56331bc..2536169 100644 --- a/ProjectClock/Net.swift +++ b/ProjectClock/Net.swift @@ -47,7 +47,13 @@ class APIs private init() {} } -/// Build a URL with the node path and params +/** + Build a URL with the node path and params + + - Parameter api: API Node (Eg. APIs.register) + - Parameter params: Parameters to send to the server (Check the documentation of the API node to see which parameters you need) + - Returns: URL + */ func createUrl(_ node: String, _ params: [String: String]? = [:]) -> URL { var url = URLComponents(string: baseUrl + node)