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

org.swaggertools.demo.client.PetStore Maven / Gradle / Ivy

There is a newer version: 0.5.6
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy