Skip to content

Instantly share code, notes, and snippets.

@kldavis4
Created May 3, 2013 20:27
Show Gist options
  • Save kldavis4/5513765 to your computer and use it in GitHub Desktop.
Save kldavis4/5513765 to your computer and use it in GitHub Desktop.
swagger-springmvc with plain ResponseEntity
{
"apiVersion": "1.0",
"swaggerVersion": "1.0",
"basePath": "http://localhost:8107/",
"resourcePath": "/vertical-service-controller",
"models": {
"MediaType": {
"name": "MediaType",
"properties": {
"charSet": {
"name": "charSet",
"type": "Charset"
},
"subtype": {
"name": "subtype",
"type": "string"
},
"wildcardSubtype": {
"name": "wildcardSubtype",
"type": "boolean"
},
"wildcardType": {
"name": "wildcardType",
"type": "boolean"
},
"parameters": {
"name": "parameters",
"type": "Map[String,String]"
},
"type": {
"name": "type",
"type": "string"
},
"qualityValue": {
"name": "qualityValue",
"type": "double"
},
"concrete": {
"name": "concrete",
"type": "boolean"
}
},
"type": "MediaType"
},
"ResponseEntity": {
"name": "ResponseEntity",
"properties": {
"headers": {
"name": "headers",
"properties": {
"lastModified": {
"name": "lastModified",
"type": "long"
},
"allow": {
"name": "allow",
"items": {
"$ref": "HttpMethod"
},
"type": "Set"
},
"location": {
"name": "location",
"properties": {
"port": {
"name": "port",
"type": "int"
},
"rawAuthority": {
"name": "rawAuthority",
"type": "string"
},
"host": {
"name": "host",
"type": "string"
},
"query": {
"name": "query",
"type": "string"
},
"rawQuery": {
"name": "rawQuery",
"type": "string"
},
"schemeSpecificPart": {
"name": "schemeSpecificPart",
"type": "string"
},
"absolute": {
"name": "absolute",
"type": "boolean"
},
"rawSchemeSpecificPart": {
"name": "rawSchemeSpecificPart",
"type": "string"
},
"authority": {
"name": "authority",
"type": "string"
},
"scheme": {
"name": "scheme",
"type": "string"
},
"rawFragment": {
"name": "rawFragment",
"type": "string"
},
"opaque": {
"name": "opaque",
"type": "boolean"
},
"path": {
"name": "path",
"type": "string"
},
"rawUserInfo": {
"name": "rawUserInfo",
"type": "string"
},
"userInfo": {
"name": "userInfo",
"type": "string"
},
"fragment": {
"name": "fragment",
"type": "string"
},
"rawPath": {
"name": "rawPath",
"type": "string"
}
},
"type": "URI"
},
"ifNoneMatch": {
"name": "ifNoneMatch",
"items": {
"$ref": "string"
},
"type": "List"
},
"accept": {
"name": "accept",
"items": {
"$ref": "MediaType"
},
"type": "List"
},
"contentType": {
"name": "contentType",
"properties": {
"charSet": {
"name": "charSet",
"properties": {
"registered": {
"name": "registered",
"type": "boolean"
}
},
"type": "Charset"
},
"subtype": {
"name": "subtype",
"type": "string"
},
"wildcardSubtype": {
"name": "wildcardSubtype",
"type": "boolean"
},
"wildcardType": {
"name": "wildcardType",
"type": "boolean"
},
"parameters": {
"name": "parameters",
"properties": {
"empty": {
"name": "empty",
"type": "boolean"
}
},
"type": "Map[String,String]"
},
"type": {
"name": "type",
"type": "string"
},
"qualityValue": {
"name": "qualityValue",
"type": "double"
},
"concrete": {
"name": "concrete",
"type": "boolean"
}
},
"type": "MediaType"
},
"date": {
"name": "date",
"type": "long"
},
"cacheControl": {
"name": "cacheControl",
"type": "string"
},
"pragma": {
"name": "pragma",
"type": "string"
},
"expires": {
"name": "expires",
"type": "long"
},
"ifNotModifiedSince": {
"name": "ifNotModifiedSince",
"type": "long"
},
"acceptCharset": {
"name": "acceptCharset",
"items": {
"$ref": "Charset"
},
"type": "List"
},
"empty": {
"name": "empty",
"type": "boolean"
},
"contentLength": {
"name": "contentLength",
"type": "long"
}
},
"type": "HttpHeaders"
},
"statusCode": {
"name": "org.springframework.http.HttpStatus",
"properties": {},
"allowableValues": {
"valueType": "LIST",
"values": ["100", "101", "102", "103", "200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "302", "303", "304", "305", "307", "308", "400", "401", "402", "403", "404", "405", "406", "407", "408", "409", "410", "411", "412", "413", "414", "415", "416", "417", "418", "419", "420", "421", "422", "423", "424", "426", "428", "429", "431", "500", "501", "502", "503", "504", "505", "506", "507", "508", "509", "510", "511"],
"valueType": "LIST"
},
"type": "HttpStatus"
},
"body": {
"name": "body"
}
},
"type": "ResponseEntity"
},
"Charset": {
"name": "Charset",
"properties": {
"registered": {
"name": "registered",
"type": "boolean"
}
},
"type": "Charset"
},
"Map": {
"name": "parameters",
"properties": {
"empty": {
"name": "empty",
"type": "boolean"
}
},
"type": "Map[String,String]"
},
"HttpHeaders": {
"name": "headers",
"properties": {
"lastModified": {
"name": "lastModified",
"type": "long"
},
"allow": {
"name": "allow",
"items": {
"$ref": "HttpMethod"
},
"type": "Set"
},
"location": {
"name": "location",
"properties": {
"port": {
"name": "port",
"type": "int"
},
"rawAuthority": {
"name": "rawAuthority",
"type": "string"
},
"host": {
"name": "host",
"type": "string"
},
"query": {
"name": "query",
"type": "string"
},
"rawQuery": {
"name": "rawQuery",
"type": "string"
},
"schemeSpecificPart": {
"name": "schemeSpecificPart",
"type": "string"
},
"absolute": {
"name": "absolute",
"type": "boolean"
},
"rawSchemeSpecificPart": {
"name": "rawSchemeSpecificPart",
"type": "string"
},
"authority": {
"name": "authority",
"type": "string"
},
"scheme": {
"name": "scheme",
"type": "string"
},
"rawFragment": {
"name": "rawFragment",
"type": "string"
},
"opaque": {
"name": "opaque",
"type": "boolean"
},
"path": {
"name": "path",
"type": "string"
},
"rawUserInfo": {
"name": "rawUserInfo",
"type": "string"
},
"userInfo": {
"name": "userInfo",
"type": "string"
},
"fragment": {
"name": "fragment",
"type": "string"
},
"rawPath": {
"name": "rawPath",
"type": "string"
}
},
"type": "URI"
},
"ifNoneMatch": {
"name": "ifNoneMatch",
"items": {
"$ref": "string"
},
"type": "List"
},
"accept": {
"name": "accept",
"items": {
"$ref": "MediaType"
},
"type": "List"
},
"contentType": {
"name": "contentType",
"properties": {
"charSet": {
"name": "charSet",
"properties": {
"registered": {
"name": "registered",
"type": "boolean"
}
},
"type": "Charset"
},
"subtype": {
"name": "subtype",
"type": "string"
},
"wildcardSubtype": {
"name": "wildcardSubtype",
"type": "boolean"
},
"wildcardType": {
"name": "wildcardType",
"type": "boolean"
},
"parameters": {
"name": "parameters",
"properties": {
"empty": {
"name": "empty",
"type": "boolean"
}
},
"type": "Map[String,String]"
},
"type": {
"name": "type",
"type": "string"
},
"qualityValue": {
"name": "qualityValue",
"type": "double"
},
"concrete": {
"name": "concrete",
"type": "boolean"
}
},
"type": "MediaType"
},
"date": {
"name": "date",
"type": "long"
},
"cacheControl": {
"name": "cacheControl",
"type": "string"
},
"pragma": {
"name": "pragma",
"type": "string"
},
"expires": {
"name": "expires",
"type": "long"
},
"ifNotModifiedSince": {
"name": "ifNotModifiedSince",
"type": "long"
},
"acceptCharset": {
"name": "acceptCharset",
"items": {
"$ref": "Charset"
},
"type": "List"
},
"empty": {
"name": "empty",
"type": "boolean"
},
"contentLength": {
"name": "contentLength",
"type": "long"
}
},
"type": "HttpHeaders"
},
"HttpStatus": {
"name": "org.springframework.http.HttpStatus",
"properties": {},
"allowableValues": {
"valueType": "LIST",
"values": ["100", "101", "102", "103", "200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "302", "303", "304", "305", "307", "308", "400", "401", "402", "403", "404", "405", "406", "407", "408", "409", "410", "411", "412", "413", "414", "415", "416", "417", "418", "419", "420", "421", "422", "423", "424", "426", "428", "429", "431", "500", "501", "502", "503", "504", "505", "506", "507", "508", "509", "510", "511"],
"valueType": "LIST"
},
"type": "HttpStatus"
},
"HttpMethod": {
"name": "org.springframework.http.HttpMethod",
"properties": {},
"allowableValues": {
"valueType": "LIST",
"values": ["GET", "POST", "HEAD", "OPTIONS", "PUT", "PATCH", "DELETE", "TRACE"],
"valueType": "LIST"
},
"type": "HttpMethod"
},
"URI": {
"name": "location",
"properties": {
"port": {
"name": "port",
"type": "int"
},
"rawAuthority": {
"name": "rawAuthority",
"type": "string"
},
"host": {
"name": "host",
"type": "string"
},
"query": {
"name": "query",
"type": "string"
},
"rawQuery": {
"name": "rawQuery",
"type": "string"
},
"schemeSpecificPart": {
"name": "schemeSpecificPart",
"type": "string"
},
"absolute": {
"name": "absolute",
"type": "boolean"
},
"rawSchemeSpecificPart": {
"name": "rawSchemeSpecificPart",
"type": "string"
},
"authority": {
"name": "authority",
"type": "string"
},
"scheme": {
"name": "scheme",
"type": "string"
},
"rawFragment": {
"name": "rawFragment",
"type": "string"
},
"opaque": {
"name": "opaque",
"type": "boolean"
},
"path": {
"name": "path",
"type": "string"
},
"rawUserInfo": {
"name": "rawUserInfo",
"type": "string"
},
"userInfo": {
"name": "userInfo",
"type": "string"
},
"fragment": {
"name": "fragment",
"type": "string"
},
"rawPath": {
"name": "rawPath",
"type": "string"
}
},
"type": "URI"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment