org.swaggertools.demo.client.PetStore Maven / Gradle / Ivy
package org.swaggertools.demo.client;
import java.lang.String;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import org.springframework.http.RequestEntity.BodyBuilder;
import org.springframework.web.client.RestTemplate;
public class PetStore {
private final RestTemplate client;
private final Map> headers = new HashMap>();
private final PetsClient pets;
public PetStore(RestTemplate client, String basePath) {
this.client = client;
pets = new PetsClient(client, basePath, headers);
}
public RestTemplate getClient() {
return client;
}
public Map> getHeaders() {
return headers;
}
public void setRequestCustomizer(Consumer requestCustomizer) {
pets.setRequestCustomizer(requestCustomizer);
}
public PetsClient pets() {
return pets;
}
}