File tree Expand file tree Collapse file tree
client/petstore/kotlin/docs
echo_api/kotlin-wiremock/src/main/kotlin/org/openapitools/apis
petstore/kotlin-wiremock/src/main/kotlin/org/openapitools/apis Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ # ModelApiResponse
3+
4+ ## Properties
5+ | Name | Type | Description | Notes |
6+ | ------------ | ------------- | ------------- | ------------- |
7+ | ** code** | ** kotlin.Int** | | [ optional] |
8+ | ** type** | ** kotlin.String** | | [ optional] |
9+ | ** message** | ** kotlin.String** | | [ optional] |
10+
11+
12+
Original file line number Diff line number Diff line change 1+ @file:Suppress(
2+ " RemoveRedundantQualifierName" ,
3+ " UnusedImport" ,
4+ " unused" ,
5+ )
6+
7+ package org.openapitools.apis
8+
9+ import com.fasterxml.jackson.databind.ObjectMapper
10+ import com.github.tomakehurst.wiremock.client.MappingBuilder
11+ import com.github.tomakehurst.wiremock.client.ResponseDefinitionBuilder
12+ import com.github.tomakehurst.wiremock.client.WireMock.*
13+ import com.github.tomakehurst.wiremock.matching.StringValuePattern
14+ import org.openapitools.models.*
15+
16+ /* *
17+ * WireMock stub request builder.
18+ */
19+ open class AuthApiStubs (private val objectMapper : ObjectMapper ) {
20+
21+ /* *
22+ * Construct a stub for the operation testAuthHttpBasic.
23+ *
24+ * @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
25+ * @return A [TestAuthHttpBasicStubBuilder] to configure the response, and the final [MappingBuilder].
26+ */
27+ fun testAuthHttpBasic (configurer : MappingBuilder .() -> MappingBuilder = { this }): TestAuthHttpBasicStubBuilder =
28+ TestAuthHttpBasicStubBuilder (objectMapper, post(urlPathTemplate(" /auth/http/basic" ))
29+ .configurer()
30+ )
31+
32+ /* *
33+ * Construct a stub for the operation testAuthHttpBearer.
34+ *
35+ * @param configurer configurer for the [MappingBuilder], allowing for arbitrary changes.
36+ * @return A [TestAuthHttpBearerStubBuilder] to configure the response, and the final [MappingBuilder].
37+ */
38+ fun testAuthHttpBearer (configurer : MappingBuilder .() -> MappingBuilder = { this }): TestAuthHttpBearerStubBuilder =
39+ TestAuthHttpBearerStubBuilder (objectMapper, post(urlPathTemplate(" /auth/http/bearer" ))
40+ .configurer()
41+ )
42+ }
You can’t perform that action at this time.
0 commit comments