Interface PetStoreClient


@Remote(path="/petstore") public interface PetStoreClient
Typed client view of the petstore pet CRUD surface, consumed via org.apache.juneau.rest.client.RestClient#remote(Class).

Mirrors the pet endpoints of PetStoreResource (mounted at /petstore in both the Jetty and Spring Boot deployments). Demonstrates Juneau's REST client consuming a REST resource written with Juneau's REST server — the client interface and the server resource live in different modules but share nothing but the wire protocol and the Pet DTO.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    addPet(Pet pet)
    Creates a new pet.
    getPet(long id)
    Retrieves a pet by ID.
    Lists all pets.
  • Method Details