Request Path

@Target(allowedTargets = [AnnotationTarget.FUNCTION] )
annotation class RequestPath(val method: RequestMethod, val path: String = "", val pathParameters: String = "", val queryParameters: String = "", val bodyParameters: String = "")

Annotation that defines the request path and its parameters for API requests.

The @RequestPath annotation is used to make the request path, path parameters, query parameters, and body parameters more readable and easier to manage in API request methods. It supports multiple types of parameters including path, query, and body parameters, helping to organize the API request construction in a more structured and understandable way.

Author

N7ghtm4r3 - Tecknobit

Properties

Link copied to clipboard

The body parameters of the request formatted as key_parameter_one, key_parameter_two

Link copied to clipboard

The HTTP method for the request

Link copied to clipboard
val path: String

The base URL or path of the request endpoint

Link copied to clipboard

A comma-separated list of path parameter names for dynamic segments in the URL

Link copied to clipboard

A list of query parameters for the request, formatted as key_parameter_one, key_parameter_two