All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.httpclient.json.JsonClient Maven / Gradle / Ivy

The newest version!
package net.nemerosa.httpclient.json;

import com.fasterxml.jackson.databind.JsonNode;
import net.nemerosa.httpclient.Client;
import net.nemerosa.httpclient.Document;

public interface JsonClient {

    /**
     * Underlying client
     */
    Client getClient();

    JsonNode toNode(Object data);

    JsonNode get(String path, Object... parameters);

    JsonNode delete(String path, Object... parameters);

    JsonNode post(Object data, String path, Object... parameters);

    JsonNode put(Object data, String path, Object... parameters);

    JsonNode upload(String name, Document o, String fileName, String path, Object... parameters);

    /**
     * Uploads a document.
     *
     * @param file       Document to upload
     * @param path       Path to upload to
     * @param parameters Parameters for the path
     * @return Parsed response
     */
    JsonNode upload(Document file, String path, Object... parameters);

    Document download(String path, Object... parameters);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy