Pet {
id (integer, optional),
category (Category, optional),
name (string),
photoUrls (Array[string]),
tags (Array[Tag], optional),
status (string, optional): pet status in the store = ['available', 'pending', 'sold']
}
public class Pet: Mappable {
var id: Int?
var category: Category?
var tags: Array[Tag]?
var status: String?
required public init?(_ map: Map) {
}
public func mapping(map: Map) {
id <- map["id"]
category <- map["category"]
tags <- map["tags"]
status <- map["status"]
}
}
Pet {
id (integer, optional),
category (Category, optional),
name (string),
photoUrls (Array[string]),
tags (Array[Tag], optional),
status (string, optional): pet status in the store = ['available', 'pending', 'sold']
}
Horse {
id (integer, optional),
category (Category, optional),
name (string),
photoUrls (Array[string]),
tags (Array[Tag], optional),
status (string, optional): pet status in the store = ['available', 'pending', 'sold']
}
On Aug 30, 2016, at 5:30 PM, Jose Martinez <joam...@gmail.com> wrote:
I'm searching something similar to this: http://petstore.swagger.io/v2/swagger.json but with the model classes instead. Thanks.
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.