/
ResourceApi.kt
178 lines (175 loc) 路 6.18 KB
/
ResourceApi.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
/**
* NOTE: This class is auto generated by the Swagger Gradle Codegen for the following API: JUnit Tests
*
* More info on this tool is available on https://github.com/Yelp/swagger-gradle-codegen
*/
package com.yelp.codegen.generatecodesamples.apis
import com.yelp.codegen.generatecodesamples.models.EmptyModel
import com.yelp.codegen.generatecodesamples.models.FormatResponses
import com.yelp.codegen.generatecodesamples.models.NestedAdditionalProperties
import com.yelp.codegen.generatecodesamples.models.NestedAdditionalPropertiesCustomDescription
import com.yelp.codegen.generatecodesamples.models.PropertyArray
import com.yelp.codegen.generatecodesamples.models.PropertyMap
import com.yelp.codegen.generatecodesamples.models.RequiredTypeResponses
import com.yelp.codegen.generatecodesamples.models.ReservedKeywords
import com.yelp.codegen.generatecodesamples.models.TopLevelEnum
import com.yelp.codegen.generatecodesamples.models.TopLevelMap
import com.yelp.codegen.generatecodesamples.models.TypeResponses
import io.reactivex.Completable
import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Headers
@JvmSuppressWildcards
interface ResourceApi {
/**
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: get_empty_endpoint"
)
@GET("/empty_endpoint")
fun getEmptyEndpoint(): Single<EmptyModel>
/**
* The endpoint is owned by junittests service owner
* @param propertyFormat (required)
*/
@Headers(
"X-Operation-ID: get_format_endpoint"
)
@GET("/format_endpoint/{property_format}")
fun getFormatEndpoint(
@retrofit2.http.Path("property_format") propertyFormat: String
): Single<FormatResponses>
/**
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: get_nested_additional_properties"
)
@GET("/nested_additional_properties")
fun getNestedAdditionalProperties(): Single<NestedAdditionalProperties>
/**
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: get_nested_additional_properties_custom_description"
)
@GET("/nested_additional_properties/custom_description")
fun getNestedAdditionalPropertiesCustomDescription(): Single<NestedAdditionalPropertiesCustomDescription>
/**
* The endpoint is owned by junittests service owner
* @param valueType (required)
* @param size (required)
*/
@Headers(
"X-Operation-ID: get_property_array"
)
@GET("/property_array/{value_type}/{size}")
fun getPropertyArray(
@retrofit2.http.Path("value_type") valueType: String,
@retrofit2.http.Path("size") size: String
): Single<PropertyArray>
/**
* The endpoint is owned by junittests service owner
* @param valueType (required)
* @param size (required)
*/
@Headers(
"X-Operation-ID: get_property_map"
)
@GET("/property_map/{value_type}/{size}")
fun getPropertyMap(
@retrofit2.http.Path("value_type") valueType: String,
@retrofit2.http.Path("size") size: String
): Single<PropertyMap>
/**
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: get_required_type_endpoint"
)
@GET("/required/type_endpoint")
fun getRequiredTypeEndpoint(): Single<RequiredTypeResponses>
/**
* The endpoint is owned by junittests service owner
* @param `class` (optional)
* @param `data` (optional)
* @param `for` (optional)
* @param `operator` (optional)
* @param `val` (optional)
* @param `var` (optional)
* @param `when` (optional)
*/
@Headers(
"X-Operation-ID: get_reserved_keywords"
)
@GET("/reserved_keywords")
fun getReservedKeywords(
@retrofit2.http.Query("class") `class`: String? = null,
@retrofit2.http.Query("data") `data`: String? = null,
@retrofit2.http.Query("for") `for`: String? = null,
@retrofit2.http.Query("operator") `operator`: String? = null,
@retrofit2.http.Query("val") `val`: String? = null,
@retrofit2.http.Query("var") `var`: String? = null,
@retrofit2.http.Query("when") `when`: String? = null
): Single<ReservedKeywords>
/**
* Test symbols in parameter name
* Make sure that symbols in parameter name are treated properly
* The endpoint is owned by junittests service owner
* @param parameter (optional)
* @param brackets (optional)
* @param bracketsWithText (optional)
* @param dot (optional)
* @param dotWithText (optional)
*/
@Headers(
"X-Operation-ID: getSymbolsInParameterName"
)
@GET("/symbols/in/parameter/name")
fun getSymbolsInParameterName(
@retrofit2.http.Query("parameter") parameter: String? = null,
@retrofit2.http.Query("brackets[]") brackets: String? = null,
@retrofit2.http.Query("brackets[withText]") bracketsWithText: String? = null,
@retrofit2.http.Query("dot.") dot: String? = null,
@retrofit2.http.Query("dot.withText") dotWithText: String? = null
): Completable
/**
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: get_top_level_enum"
)
@GET("/top_level_enum")
fun getTopLevelEnum(): Single<TopLevelEnum>
/**
* The endpoint is owned by junittests service owner
*/
@Headers(
"X-Operation-ID: get_top_level_enum_nested"
)
@GET("/top_level_enum/nested")
fun getTopLevelEnumNested(): Single<Map<String, Map<String, TopLevelEnum>>>
/**
* The endpoint is owned by junittests service owner
* @param size (required)
*/
@Headers(
"X-Operation-ID: get_top_level_map"
)
@GET("/top_level_map/{size}")
fun getTopLevelMap(
@retrofit2.http.Path("size") size: String
): Single<TopLevelMap>
/**
* The endpoint is owned by junittests service owner
* @param propertyType (required)
*/
@Headers(
"X-Operation-ID: get_type_endpoint"
)
@GET("/type_endpoint/{property_type}")
fun getTypeEndpoint(
@retrofit2.http.Path("property_type") propertyType: String
): Single<TypeResponses>
}