We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c479e6c + dbbe600 commit 319fa24Copy full SHA for 319fa24
src/main/kotlin/org/gitanimals/inbox/app/IdentityApi.kt
@@ -1,11 +1,13 @@
1
package org.gitanimals.inbox.app
2
3
+import org.springframework.http.HttpHeaders
4
+import org.springframework.web.bind.annotation.RequestHeader
5
import org.springframework.web.service.annotation.GetExchange
6
7
fun interface IdentityApi {
8
9
@GetExchange("/users")
- fun getUserByToken(token: String): UserResponse
10
+ fun getUserByToken(@RequestHeader(HttpHeaders.AUTHORIZATION) token: String): UserResponse
11
12
data class UserResponse(
13
val id: String,
0 commit comments