File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
com/yelp/codegen/generatecodesamples Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 6969 }
7070 },
7171 "info" : {
72- "basePath" : " /v2" ,
7372 "description" : " This is a simplified version of the sample server Petstore server." ,
7473 "title" : " Swagger Petstore" ,
7574 "version" : " 1.0.0"
7675 },
7776 "paths" : {
78- "pet/{petId}" : {
77+ "/ pet/{petId}" : {
7978 "get" : {
8079 "description" : " Returns a single pet" ,
8180 "operationId" : " getPetById" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ interface DefaultApi {
2222 @Headers(
2323 " X-Operation-ID: getPetById"
2424 )
25- @GET(" pet/{petId}" )
25+ @GET(" / pet/{petId}" )
2626 fun getPetById (
2727 @retrofit2.http.Path ("petId") petId : Long
2828 ): Single <Pet >
Original file line number Diff line number Diff line change @@ -10,16 +10,16 @@ import com.squareup.moshi.Json
1010
1111/* *
1212 * Represents a specific Pet in the store
13- * @property category Optional category of the pet
1413 * @property id Unique ID of this Pet
14+ * @property category Optional category of the pet
1515 * @property name Name of this specific pet
1616 * @property photoUrls Photo URls for this Pet on the bucket
1717 * @property tags Pet status in the store
1818 */
1919data class Pet (
2020 @Json(name = " name" ) @field:Json(name = "name") var name : String ,
2121 @Json(name = " photoUrls" ) @field:Json(name = "photoUrls") var photoUrls : List <String >,
22- @Json(name = " category" ) @field:Json(name = "category") var category : Category ? = null ,
2322 @Json(name = " id" ) @field:Json(name = "id") var id : Long? = null ,
23+ @Json(name = " category" ) @field:Json(name = "category") var category : Category ? = null ,
2424 @Json(name = " tags" ) @field:Json(name = "tags") var tags : List <Tag >? = null
2525)
Original file line number Diff line number Diff line change 7474 "version" : " 1.0.0"
7575 },
7676 "paths" : {
77- "pet/{petId}" : {
77+ "/ pet/{petId}" : {
7878 "get" : {
7979 "description" : " Returns a single pet" ,
8080 "operationId" : " getPetById" ,
You can’t perform that action at this time.
0 commit comments