Path
annotation class Path(@Language(value = "http-url-reference"
Named replacement in a URL path segment
This can be set if you have a segment in your URL that want to dynamically replace
Path parameters type may not be nullable.
@GET("post/{postId}")
suspend fun getPosts(@Path("postId") id: Int): List<Post>
foo.getPosts(25)
// Generate post/25
Content copied to clipboard