Skip to content

Commit

Permalink
feat : Add default build action
Browse files Browse the repository at this point in the history
  • Loading branch information
wwan13 committed Jul 26, 2024
1 parent b0db567 commit 9b87a24
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/src/main/kotlin/io/wwan13/api/request/ApiMethodSelector.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@ interface ApiMethodSelector {
fun get(
path: String,
vararg pathParameters: Any = arrayOf(),
buildAction: ApiRequestBuilder.() -> Unit
buildAction: ApiRequestBuilder.() -> Unit = { }
): ResultActions

fun post(
path: String,
vararg pathParameters: Any = arrayOf(),
buildAction: ApiRequestBuilder.() -> Unit
buildAction: ApiRequestBuilder.() -> Unit = { }
): ResultActions

fun put(
path: String,
vararg pathParameters: Any = arrayOf(),
buildAction: ApiRequestBuilder.() -> Unit
buildAction: ApiRequestBuilder.() -> Unit = { }
): ResultActions

fun patch(
path: String,
vararg pathParameters: Any = arrayOf(),
buildAction: ApiRequestBuilder.() -> Unit
buildAction: ApiRequestBuilder.() -> Unit = { }
): ResultActions

fun delete(
path: String,
vararg pathParameters: Any = arrayOf(),
buildAction: ApiRequestBuilder.() -> Unit
buildAction: ApiRequestBuilder.() -> Unit = { }
): ResultActions
}

0 comments on commit 9b87a24

Please sign in to comment.