Last active
October 18, 2017 13:14
-
-
Save serhatsezer/9369120496929d87b071b39ec509eac7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Creating our end point | |
| enum UserProvider: SSRequestRepresentable { | |
| typealias RequestParameters = [String: Any] | |
| typealias JSONBody = [String: Any] | |
| var baseURL: URL { | |
| return URL(string: "http://sample.com")! | |
| } | |
| var parameters: RequestParameters { | |
| let params: [String: Any] = ["API_TOKEN": "123123123", | |
| "USER_ID": 3434, | |
| "TIME_STAMP": "12042017"] | |
| return params | |
| } | |
| var bodyData: JSONBody { | |
| let bodyDict: [String: Any] = ["API_TOKEN": "123123123", | |
| "USER_ID": 3434, | |
| "TIME_STAMP": "12042017"] | |
| return bodyDict | |
| } | |
| case getUser(name: String) | |
| case getAllUser | |
| case updateUser(id: String) | |
| case reportUser(id: String) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment