Skip to content

Instantly share code, notes, and snippets.

@danieleli
Created November 10, 2012 03:37
Show Gist options
  • Save danieleli/4049749 to your computer and use it in GitHub Desktop.
Save danieleli/4049749 to your computer and use it in GitHub Desktop.
Swagger models
"models":{
"Category":{
"id":"Category",
"properties":{
"id":{
"type":"long"
},
"name":{
"type":"string"
}
}
},
"Pet":{
"id":"Pet",
"properties":{
"tags":{
"items":{
"$ref":"Tag"
},
"type":"Array"
},
"id":{
"type":"long"
},
"category":{
"type":"Category"
},
"status":{
"allowableValues":{
"valueType":"LIST",
"values":[
"available",
"pending",
"sold"
],
"valueType":"LIST"
},
"description":"pet status in the store",
"type":"string"
},
"name":{
"type":"string"
},
"photoUrls":{
"items":{
"type":"string"
},
"type":"Array"
}
}
},
"Tag":{
"id":"Tag",
"properties":{
"id":{
"type":"long"
},
"name":{
"type":"string"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment