Skip to content

Instantly share code, notes, and snippets.

@cortinico
Created October 30, 2019 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cortinico/b67b088a283f8c4bdde450b5948ceeb3 to your computer and use it in GitHub Desktop.
Save cortinico/b67b088a283f8c4bdde450b5948ceeb3 to your computer and use it in GitHub Desktop.
Example of a common parameter swapping scenario with swagger-gradle-codegen
interface DefaultApi {
/**
* Find a Business by its owner name and surname.
*/
@GET("/business/owner")
fun getBusinessByOwner(
@retrofit2.http.Query("surname") surname: String
@retrofit2.http.Query("name") name: String
): Single<List<Business>>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment