package com.example;

import java.io.ByteArrayInputStream;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.MediaType;

public final class Main {

    public static void main(String... args) throws Exception {
        try (var data = new ByteArrayInputStream("true".getBytes())) {
            ClientBuilder.newClient()
                .target("http://localhost:8080/")
                .request(MediaType.APPLICATION_JSON)
                .method("GET", Entity.entity(data, MediaType.APPLICATION_JSON_TYPE));
        }
    }
}
