TODO
-
Swift With REST API (using Alamofire, in progress )미완성 2022. 3. 18. 01:07
TODO Server: https://github.com/hanmok/TodoServer.git TODO SwiftCode : https://github.com/hanmok/TodoHabitREST let baseUrl = "http://localhost:5001" let targetUrl = "http://localhost:5001/todos" 먼저, Alamofire 의 도움을 받지 않고 REST API 호출하는 법 1. GET func getOneTodo(id: String, completion: @escaping (Result) -> Void ) { let url = "\(baseUrl)/\(id)" guard let URL = URL(string: url) else { return } var u..