Skip to content

Commit 99e0325

Browse files
committed
restoring incorrectly deleted output files
1 parent 0aaa161 commit 99e0325

3 files changed

Lines changed: 557 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
}

0 commit comments

Comments
 (0)