Class SimpleAPI


  • public abstract class SimpleAPI
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleAPI()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      Header[] getDefaultHeads()
      Default headers which will be added in every request.
      abstract @NonNull java.lang.String getURL()
      Base API URL
      Example: https://example.come/v1
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleAPI

        public SimpleAPI()
    • Method Detail

      • getURL

        @NonNull
        public abstract @NonNull java.lang.String getURL()
        Base API URL
        Example: https://example.come/v1
        Returns:
        Non-null Base API URL
      • getDefaultHeads

        public Header[] getDefaultHeads()
        Default headers which will be added in every request. Useful for token based Authorization headers
        Returns:
        Nullable Header array