Class ApiClient


  • public class ApiClient
    extends Object
    Simplified REST API client with retries, JSON POJO SerDe through Jackson and exception POJO guessing
    • Method Detail

      • configuredAccountID

        public String configuredAccountID()
      • getCollection

        public <I,​O> Collection<O> getCollection​(String path,
                                                       I in,
                                                       Class<O> element)
      • withJavaType

        protected <I,​O> O withJavaType​(String path,
                                             I in,
                                             com.fasterxml.jackson.databind.JavaType javaType)
      • GET

        public <O> O GET​(String path,
                         Class<O> target)
      • GET

        public <I,​O> O GET​(String path,
                                 I in,
                                 Class<O> target)
      • POST

        public <I,​O> O POST​(String path,
                                  I in,
                                  Class<O> target)
      • PUT

        public <I,​O> O PUT​(String path,
                                 I in,
                                 Class<O> target)
      • PATCH

        public <I,​O> O PATCH​(String path,
                                   I in,
                                   Class<O> target)
      • DELETE

        public <I,​O> O DELETE​(String path,
                                    I in,
                                    Class<O> target)
      • deserialize

        public <T> T deserialize​(String body,
                                 com.fasterxml.jackson.databind.JavaType target)
                          throws IOException
        Throws:
        IOException