Skip to content

Commit

Permalink
Merge pull request #109 from Alfresco/MOBILEAPPS-850
Browse files Browse the repository at this point in the history
Mobileapps 850
  • Loading branch information
gl-lovekesh authored Sep 30, 2021
2 parents cafd555 + 7e51e20 commit bdef0d5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -690,18 +690,18 @@ open class QueriesAPI {
- parameter completion: SearchConfigModel is the output of the API for success and error: Returns error if there is any
*/

open class func loadAdvanceSearchConfigurations(withCallback completion: @escaping ((_ data: Data?,_ error: Error?) -> Void)) {
self.findAdvanceSearchConfigurationPath().execute { response, error in
completion(response?.data, error)
open class func loadAdvanceSearchConfigurations(for url:String?, withCallback completion: @escaping ((_ configuration: SearchConfigModel?, _ data: Data?, _ error: Error?) -> Void)) {
self.findAdvanceSearchConfigurationPath(for: url).execute { response, error in
completion(response?.body, response?.data, error)
}
}

/**
- GET Advance search configurations API call
This API is used to fetch configurations from the server. This is GET request
*/
class func findAdvanceSearchConfigurationPath() -> RequestBuilder<SearchConfigModel> {
let URLString = "https://mobileapps.envalfresco.com/adf/app-config.json"
class func findAdvanceSearchConfigurationPath(for url:String?) -> RequestBuilder<SearchConfigModel> {
let URLString = url ?? "https://mobileapps.envalfresco.com/adf/app-config.json"
let parameters: [String:Any]? = nil
let requestBuilder: RequestBuilder<SearchConfigModel>.Type = AlfrescoContentAPI.requestBuilderFactory.getBuilder()
return requestBuilder.init(method: "GET", URLString: URLString, parameters: parameters, isBody: false)
Expand Down

0 comments on commit bdef0d5

Please sign in to comment.