//
//  InfoRequest.swift
//  Rocket.Chat
//
//  Created by Matheus Cardoso on 9/18/17.
//  Copyright © 2017 Rocket.Chat. All rights reserved.
//
//  DOCS: https://rocket.chat/docs/developer-guides/rest-api/miscellaneous/info

import SwiftyJSON

final class InfoRequest: APIRequest {
    typealias APIResourceType = InfoResource

    let path = "/api/info"
}

final class InfoResource: APIResource {
    var version: String? {
        return raw?["version"].string
    }
}

//
//  InfoRequest.swift
//  Rocket.Chat
//
//  Created by Matheus Cardoso on 9/18/17.
//  Copyright © 2017 Rocket.Chat. All rights reserved.
//
//  DOCS: https://rocket.chat/docs/developer-guides/rest-api/miscellaneous/info

import SwiftyJSON

final class InfoRequest: APIRequest {
    typealias APIResourceType = InfoResource

    let path = "/api/v1/info"
}

final class InfoResource: APIResource {
    var version: String? {
        return raw?["info"]["version"].string
    }
}

--- 
+++ 
@@ -12,11 +12,11 @@
 final class InfoRequest: APIRequest {
     typealias APIResourceType = InfoResource
 
-    let path = "/api/v1/info"
+    let path = "/api/info"
 }
 
 final class InfoResource: APIResource {
     var version: String? {
-        return raw?["info"]["version"].string
+        return raw?["version"].string
     }
 }
Update info request to use the /api/info endpoint
