Skip to content

Commit

Permalink
Added HTTP method+path to JavaDocs in kotlin clients (#20618)
Browse files Browse the repository at this point in the history
* feat: Added HTTP method+path to JavaDocs in kotlin OkHTTP client

* feat: Added HTTP method+path to JavaDocs in kotlin Ktor client

* feat: Added HTTP method+path to JavaDocs in kotlin retrofit2 client

* feat: Added HTTP method+path to JavaDocs in kotlin vertex client

* feat: Added HTTP method+path to JavaDocs in kotlin volley client
  • Loading branch information
ranger-ross authored Feb 9, 2025
1 parent adbbe68 commit e1130c3
Show file tree
Hide file tree
Showing 113 changed files with 1,007 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ import com.fasterxml.jackson.databind.ObjectMapper
{{#operation}}
/**
* {{{httpMethod}}} {{{path}}}
* {{summary}}
* {{notes}}
{{#allParams}} * @param {{{paramName}}} {{description}} {{^required}}(optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ import {{packageName}}.infrastructure.toMultiValue
{{/isEnum}}
{{/allParams}}
/**
* {{{httpMethod}}} {{{path}}}
* {{summary}}
* {{notes}}
{{#allParams}}* @param {{{paramName}}} {{description}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}{{/required}}
Expand Down Expand Up @@ -160,6 +161,7 @@ import {{packageName}}.infrastructure.toMultiValue
}

/**
* {{{httpMethod}}} {{{path}}}
* {{summary}}
* {{notes}}
{{#allParams}}* @param {{{paramName}}} {{description}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}{{/required}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ import okhttp3.MultipartBody
{{/isEnum}}
{{/allParams}}
/**
* {{{httpMethod}}} {{{path}}}
* {{summary}}
* {{notes}}
* Responses:{{#responses}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ import {{packageName}}.infrastructure.*
{{/isEnum}}
{{/allParams}}
/**
* {{{httpMethod}}} {{{path}}}
* {{summary}}
* {{notes}}
{{#allParams}}* @param {{{paramName}}} {{description}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}{{/required}}
Expand Down Expand Up @@ -122,6 +123,7 @@ import {{packageName}}.infrastructure.*
}

/**
* {{{httpMethod}}} {{{path}}}
* {{summary}}
* {{notes}}
{{#allParams}}* @param {{{paramName}}} {{description}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}{{/required}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import {{packageName}}.infrastructure.CollectionFormats.*
{{#operation}}
/**
* {{{httpMethod}}} {{{path}}}
* {{summary}}
* {{notes}}
{{#allParams}}* @param {{{paramName}}} {{description}}{{^required}} (optional{{#defaultValue}}, default to {{{.}}}{{/defaultValue}}){{/required}}{{#required}}{{#defaultValue}} (default to {{{.}}}){{/defaultValue}}{{/required}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class AuthApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /auth/http/basic
* To test HTTP basic authentication
* To test HTTP basic authentication
* @return kotlin.String
Expand Down Expand Up @@ -75,6 +76,7 @@ class AuthApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /auth/http/basic
* To test HTTP basic authentication
* To test HTTP basic authentication
* @return ApiResponse<kotlin.String?>
Expand Down Expand Up @@ -113,6 +115,7 @@ class AuthApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /auth/http/bearer
* To test HTTP bearer authentication
* To test HTTP bearer authentication
* @return kotlin.String
Expand Down Expand Up @@ -143,6 +146,7 @@ class AuthApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /auth/http/bearer
* To test HTTP bearer authentication
* To test HTTP bearer authentication
* @return ApiResponse<kotlin.String?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /binary/gif
* Test binary (gif) response body
* Test binary (gif) response body
* @return java.io.File
Expand Down Expand Up @@ -77,6 +78,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /binary/gif
* Test binary (gif) response body
* Test binary (gif) response body
* @return ApiResponse<java.io.File?>
Expand Down Expand Up @@ -114,6 +116,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /body/application/octetstream/binary
* Test body parameter(s)
* Test body parameter(s)
* @param body (optional)
Expand Down Expand Up @@ -145,6 +148,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /body/application/octetstream/binary
* Test body parameter(s)
* Test body parameter(s)
* @param body (optional)
Expand Down Expand Up @@ -186,6 +190,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /body/application/octetstream/array_of_binary
* Test array of binary in multipart mime
* Test array of binary in multipart mime
* @param files
Expand Down Expand Up @@ -217,6 +222,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /body/application/octetstream/array_of_binary
* Test array of binary in multipart mime
* Test array of binary in multipart mime
* @param files
Expand Down Expand Up @@ -258,6 +264,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /body/application/octetstream/single_binary
* Test single binary in multipart mime
* Test single binary in multipart mime
* @param myFile (optional)
Expand Down Expand Up @@ -289,6 +296,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /body/application/octetstream/single_binary
* Test single binary in multipart mime
* Test single binary in multipart mime
* @param myFile (optional)
Expand Down Expand Up @@ -330,6 +338,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /echo/body/FreeFormObject/response_string
* Test free form object
* Test free form object
* @param body Free form object (optional)
Expand Down Expand Up @@ -361,6 +370,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /echo/body/FreeFormObject/response_string
* Test free form object
* Test free form object
* @param body Free form object (optional)
Expand Down Expand Up @@ -402,6 +412,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /echo/body/Pet
* Test body parameter(s)
* Test body parameter(s)
* @param apiPet Pet object that needs to be added to the store (optional)
Expand Down Expand Up @@ -433,6 +444,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /echo/body/Pet
* Test body parameter(s)
* Test body parameter(s)
* @param apiPet Pet object that needs to be added to the store (optional)
Expand Down Expand Up @@ -474,6 +486,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /echo/body/Pet/response_string
* Test empty response body
* Test empty response body
* @param apiPet Pet object that needs to be added to the store (optional)
Expand Down Expand Up @@ -505,6 +518,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /echo/body/Pet/response_string
* Test empty response body
* Test empty response body
* @param apiPet Pet object that needs to be added to the store (optional)
Expand Down Expand Up @@ -546,6 +560,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /echo/body/Tag/response_string
* Test empty json (request body)
* Test empty json (request body)
* @param apiTag Tag object (optional)
Expand Down Expand Up @@ -577,6 +592,7 @@ class BodyApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /echo/body/Tag/response_string
* Test empty json (request body)
* Test empty json (request body)
* @param apiTag Tag object (optional)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class FormApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /form/integer/boolean/string
* Test form parameter(s)
* Test form parameter(s)
* @param integerForm (optional)
Expand Down Expand Up @@ -78,6 +79,7 @@ class FormApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /form/integer/boolean/string
* Test form parameter(s)
* Test form parameter(s)
* @param integerForm (optional)
Expand Down Expand Up @@ -125,6 +127,7 @@ class FormApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /form/oneof
* Test form parameter(s) for oneOf schema
* Test form parameter(s) for oneOf schema
* @param form1 (optional)
Expand Down Expand Up @@ -161,6 +164,7 @@ class FormApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* POST /form/oneof
* Test form parameter(s) for oneOf schema
* Test form parameter(s) for oneOf schema
* @param form1 (optional)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class HeaderApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory
}

/**
* GET /header/integer/boolean/string/enums
* Test header parameter(s)
* Test header parameter(s)
* @param integerHeader (optional)
Expand Down Expand Up @@ -99,6 +100,7 @@ class HeaderApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory
}

/**
* GET /header/integer/boolean/string/enums
* Test header parameter(s)
* Test header parameter(s)
* @param integerHeader (optional)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class PathApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}
* Test path parameter(s)
* Test path parameter(s)
* @param pathString
Expand Down Expand Up @@ -98,6 +99,7 @@ class PathApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path}
* Test path parameter(s)
* Test path parameter(s)
* @param pathString
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/enum_ref_string
* Test query parameter(s)
* Test query parameter(s)
* @param enumNonrefStringQuery (optional)
Expand Down Expand Up @@ -98,6 +99,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/enum_ref_string
* Test query parameter(s)
* Test query parameter(s)
* @param enumNonrefStringQuery (optional)
Expand Down Expand Up @@ -148,6 +150,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/datetime/date/string
* Test query parameter(s)
* Test query parameter(s)
* @param datetimeQuery (optional)
Expand Down Expand Up @@ -181,6 +184,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/datetime/date/string
* Test query parameter(s)
* Test query parameter(s)
* @param datetimeQuery (optional)
Expand Down Expand Up @@ -236,6 +240,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/integer/boolean/string
* Test query parameter(s)
* Test query parameter(s)
* @param integerQuery (optional)
Expand Down Expand Up @@ -269,6 +274,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/integer/boolean/string
* Test query parameter(s)
* Test query parameter(s)
* @param integerQuery (optional)
Expand Down Expand Up @@ -324,6 +330,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/style_deepObject/explode_true/object
* Test query parameter(s)
* Test query parameter(s)
* @param queryObject (optional)
Expand Down Expand Up @@ -355,6 +362,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/style_deepObject/explode_true/object
* Test query parameter(s)
* Test query parameter(s)
* @param queryObject (optional)
Expand Down Expand Up @@ -400,6 +408,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/style_form/explode_true/array_string
* Test query parameter(s)
* Test query parameter(s)
* @param queryObject (optional)
Expand Down Expand Up @@ -431,6 +440,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/style_form/explode_true/array_string
* Test query parameter(s)
* Test query parameter(s)
* @param queryObject (optional)
Expand Down Expand Up @@ -476,6 +486,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/style_form/explode_true/object
* Test query parameter(s)
* Test query parameter(s)
* @param queryObject (optional)
Expand Down Expand Up @@ -507,6 +518,7 @@ class QueryApi(basePath: kotlin.String = defaultBasePath, client: Call.Factory =
}

/**
* GET /query/style_form/explode_true/object
* Test query parameter(s)
* Test query parameter(s)
* @param queryObject (optional)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import com.google.gson.annotations.SerializedName

interface AuthApi {
/**
* POST auth/http/basic
* To test HTTP basic authentication
* To test HTTP basic authentication
* Responses:
Expand All @@ -20,6 +21,7 @@ interface AuthApi {
suspend fun testAuthHttpBasic(): Response<kotlin.String>

/**
* POST auth/http/bearer
* To test HTTP bearer authentication
* To test HTTP bearer authentication
* Responses:
Expand Down
Loading

0 comments on commit e1130c3

Please sign in to comment.