Skip to content

Commit 76684d1

Browse files
committed
Revert "Updated Simplified petstore to be able to talk with a Real Petstore instance"
This reverts commit 2bec121.
1 parent 3a62c10 commit 76684d1

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

samples/generated-code/simplified_pet_store.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,12 @@
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",

samples/generated-code/src/main/java/com/yelp/codegen/generatecodesamples/apis/DefaultApi.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

samples/generated-code/src/main/java/com/yelp/codegen/generatecodesamples/models/Pet.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/
1919
data 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
)

samples/generated-code/src/main/java/swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
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",

0 commit comments

Comments
 (0)