RequestPath

"@RequestPath" annotation is applied to those methods offered by libraries that allow to make a request. This annotation is useful to make the request path and its possible path parameters more readable



        //with no parameters
        = GET, path = "https://play.google.com/store/apps/developer")
        public void sendRequest() {
             APIRequest apiRequest = new APIRequest();
             apiRequest.sendAPIRequest("https://play.google.com/store/apps/developer", GET);
        }

        //with path parameters
        = GET, path = "https://play.google.com/store/apps/developer?{id}", path_parameters = "id")
        public void sendRequest() {
             APIRequest apiRequest = new APIRequest();
             apiRequest.sendAPIRequest("https://play.google.com/store/apps/developer?id=Tecknobit", GET);
        }
    

Author

N7ghtm4r3 - Tecknobit

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun body_parameters(): String
body_parameters body parameters of the request ->

         {
             parameter : parameter value,
             parameter1 : parameter1 value
         }
    
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
method of the request
Link copied to clipboard
abstract fun path(): String
path of the request
Link copied to clipboard
abstract fun path_parameters(): String
path_parameters path parameters of the request -> endpoint/{parameter}
Link copied to clipboard
abstract fun query_parameters(): String
query_parameters query parameters of the request -> endpoint?
Link copied to clipboard
abstract fun toString(): String