//
//  ResetPasswordRequest.swift
//  TOZ_iOS
//
//  Copyright © 2017 intive. All rights reserved.
//

import Foundation

final class ResetPasswordRequest: BackendAPIRequest {

    private let email: String

    init(email: String) {
        self.email = email
    }
//Will be changed when possible
    var endpoint: String {
        return "/users/emails"
    }

    var method: NetworkService.Method {
        return .POST
    }

    var parameters: [String: Any]? {
        return [
            "email": email
        ]
    }

    var headers: [String: String]? {
        return defaultJSONHeaders()
    }

}

//
//  ResetPasswordRequest.swift
//  TOZ_iOS
//
//  Copyright © 2017 intive. All rights reserved.
//

import Foundation

final class ResetPasswordRequest: BackendAPIRequest {

    private let email: String

    init(email: String) {
        self.email = email
    }

    var endpoint: String {
        return "/users/emails"
    }

    var method: NetworkService.Method {
        return .POST
    }

    var parameters: [String: Any]? {
        return [
            "email": email
        ]
    }

    var headers: [String: String]? {
        return defaultJSONHeaders()
    }

}

--- 
+++ 
@@ -14,7 +14,7 @@
     init(email: String) {
         self.email = email
     }
-
+//Will be changed when possible
     var endpoint: String {
         return "/users/emails"
     }
Add a comment to change endpoint when BE will release function for resseting password.
