         }
         return false
     }
-    
-    /// Persists all stub mappings to the `mappings` directory of the Wiremock server.
-    public static func saveAllMappings() {
-        postCommandToServer(urlCommand: "__admin/mappings/save", errorMessagePrefix: "Error saving all mappings")
-    }
-    
+
     /// Removes all stub mappings and deletes request logs from the Wiremock server.
     public static func reset() {
         postCommandToServer(urlCommand: "__admin/reset", errorMessagePrefix: "Error resetting the server")

        }
    }
    
    /// Looks up all requests matching a given pattern.
    ///
    /// - Parameter requestMapping: The request mapping to filter on
    /// - Returns: An array of LoggedRequest objects or an empty array if there was no match
    public static func findRequests(requestMapping: RequestMapping) -> [LoggedRequest] {
        guard let url = URL(string: "\(baseURL)/__admin/requests/find") else { return [] }
        var request = URLRequest(url: url)
        request.httpMethod = RequestMethod.POST.rawValue
        request.httpBody = requestMapping.asRequestData()
        let responseData =  makeSynchronousRequest(request: request, errorMessagePrefix: "Error attempting to verify a request")
        var returnRequests: [LoggedRequest] = []
        let decoder = JSONDecoder()
        if let json = responseData {
            if let requests = try? decoder.decode(AllLoggedRequests.self, from: json) {
                returnRequests = requests.requests
            }
        }
        return returnRequests
    }
    
    /// Calls to the server to see if it is up and running.
    /// If there is a mappings element returned, and no error, we should be good.
    ///

public struct WiremockClient {
    
    public static var baseURL = "http://localhost:8080"

    /// Verifies that a request has been made to the Wiremock server at least once.
    ///
    /// - Parameter mapping: The request mapping to filter on
