You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The Path annotation always needs a value which in some cases might be the same as the parameter name. @GET("posts/{postId}") suspend fun getPostById(@Path("postId") postId: Int = 4): Post
Describe the solution you'd like
We can improve this by setting a defaultValue for value. When the default is not changed, the parameter name will be used as the value. When the default is changed, that value will be used. Everything else stays the same
@GET("posts/{postId}") suspend fun getPostById(@Path postId: Int = 4): Post
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The Path annotation always needs a value which in some cases might be the same as the parameter name.
@GET("posts/{postId}") suspend fun getPostById(@Path("postId") postId: Int = 4): Post
Describe the solution you'd like
We can improve this by setting a defaultValue for value. When the default is not changed, the parameter name will be used as the value. When the default is changed, that value will be used. Everything else stays the same
@GET("posts/{postId}") suspend fun getPostById(@Path postId: Int = 4): Post
The text was updated successfully, but these errors were encountered: