Package-level declarations

Types

Link copied to clipboard
annotation class AccessUser
Link copied to clipboard
annotation class AuthedAccessUser
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class DeleteMapping(val value: String)

DELETEリクエストのエンドポイントを定義するアノテーション

Link copied to clipboard
annotation class GetMapping(val value: String)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class HttpHandler(val path: String, val method: HttpMethod = HttpMethod.GET)

HTTPハンドラーを定義するためのアノテーション

Link copied to clipboard
annotation class PathParam(val value: String)

単一のパスパラメータを受け取るパラメータを定義するアノテーション 例: @GetMapping("/shops/{shopId}") の shopId を取得する場合

Link copied to clipboard
annotation class Permission(val value: String)
Link copied to clipboard
annotation class PostMapping(val value: String)
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class PutMapping(val value: String)

PUTリクエストのエンドポイントを定義するアノテーション

Link copied to clipboard
annotation class QueryParams

クエリパラメータを受け取るパラメータを定義するアノテーション Mapとしてすべてのクエリパラメータを取得する場合に使用

Link copied to clipboard
annotation class RequestBody

リクエストボディを受け取るパラメータを定義するアノテーション

Link copied to clipboard
annotation class TargetPlayer

パスパラメータ {player} からプレイヤーを解決するアノテーション