Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[kotlin] update petstores
  • Loading branch information
4brunu committed Oct 9, 2019
commit 836f550d3c4e3bd82483b6650e14f902d56e6e96
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ internal open class ApiClient(val baseUrl: String) {
val contentType = (headers[ContentType] as String).substringBefore(";").toLowerCase()

val request = when (requestConfig.method) {
RequestMethod.DELETE -> Request.Builder().url(url).delete()
RequestMethod.DELETE -> Request.Builder().url(url).delete(requestBody(body, contentType))
RequestMethod.GET -> Request.Builder().url(url)
RequestMethod.HEAD -> Request.Builder().url(url).head()
RequestMethod.PATCH -> Request.Builder().url(url).patch(requestBody(body, contentType))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ internal data class ApiResponse (





Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ internal data class Category (





Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ internal data class Order (
)


{



/**
* Order Status
Expand All @@ -58,5 +59,5 @@ internal data class Order (

}

}


Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ internal data class Pet (
)


{



/**
* pet status in the store
Expand All @@ -60,5 +61,5 @@ internal data class Pet (

}

}


Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ internal data class Tag (





Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ internal data class User (





Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public data class ApiResponse (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public data class Category (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public data class Order (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
Expand All @@ -63,5 +63,5 @@ public data class Order (

}

}


Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public data class Pet (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
Expand All @@ -65,5 +65,5 @@ public data class Pet (

}

}


Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public data class Tag (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public data class User (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ public data class ApiResponse (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public data class Category (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public data class Order (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
Expand All @@ -63,5 +63,5 @@ public data class Order (

}

}


Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public data class Pet (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
Expand All @@ -65,5 +65,5 @@ public data class Pet (

}

}


Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public data class Tag (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public data class User (
)
: Serializable

{

companion object {
private const val serialVersionUID: Long = 123
}
}