 }
 
 public class Rating {
-    init(api url: String, app: String, platform: String, range: String, token: String) {
-        self.url = url.trimmed
+    init(api url: String, app: String, platform: String, range: String, token: String) throws {
+        let baseUrl = url.trimmed
+        
+        self.url = baseUrl.lastCharacterAsString == "/" ? baseUrl + "ratings" :  baseUrl + "/ratings"
         self.app = app.trimmed
         self.platform = platform.trimmed
         self.range = range.trimmed
         self.token = token.trimmed
         self.deviceInfo = GBDeviceInfo()
         
-        validateUrl(self.url)
-        validateKey(self.app, description: "app")
-        validateKey(self.platform, description: "platform")
-        validateKey(self.range, description: "range")
-        validateToken(self.token)
+        try validateUrl(self.url)
+        try validateKey(self.app, description: "app")
+        try validateKey(self.platform, description: "platform")
+        try validateKey(self.range, description: "range")
+        try validateToken(self.token)
     }
     
     // MARK: - Private properties

        return result
    }
    
    func send(params: [String: Any]) {
        
    }
    
    // MARK: - Public API
    
    func create(rating: Int, description: String?, comment: String?) throws {
        try validateRating(rating)
        
        var params: [String: Any] = buildParams()

            params["user"] = actualUser
        }
        
        return send(params: params)
    }
    
    public func create(rating: Int) throws {
