88 lines
2.1 KiB
JSON
88 lines
2.1 KiB
JSON
{
|
|
"openapi" : "3.0.3",
|
|
"info" : {
|
|
"title" : "Test API",
|
|
"version" : "1.33.7",
|
|
"description" : "An amazing, fully-ish \uD83D\uDE09 generated API spec",
|
|
"termsOfService" : "https://example.com",
|
|
"contact" : {
|
|
"name" : "Homer Simpson",
|
|
"url" : "https://gph.is/1NPUDiM",
|
|
"email" : "chunkylover53@aol.com"
|
|
},
|
|
"license" : {
|
|
"name" : "MIT",
|
|
"url" : "https://github.com/lg-backbone/kompendium/blob/main/LICENSE"
|
|
}
|
|
},
|
|
"servers" : [ {
|
|
"url" : "https://myawesomeapi.com",
|
|
"description" : "Production instance of my API"
|
|
}, {
|
|
"url" : "https://staging.myawesomeapi.com",
|
|
"description" : "Where the fun stuff happens"
|
|
} ],
|
|
"paths" : {
|
|
"/this/is/a/complex/path/with/an/{id}" : {
|
|
"get" : {
|
|
"tags" : [ ],
|
|
"summary" : "Another get test",
|
|
"description" : "testing more",
|
|
"parameters" : [ {
|
|
"name" : "a",
|
|
"in" : "path",
|
|
"schema" : {
|
|
"type" : "string"
|
|
},
|
|
"required" : true,
|
|
"deprecated" : false
|
|
}, {
|
|
"name" : "aa",
|
|
"in" : "query",
|
|
"schema" : {
|
|
"format" : "int32",
|
|
"type" : "integer"
|
|
},
|
|
"required" : true,
|
|
"deprecated" : false
|
|
} ],
|
|
"responses" : {
|
|
"200" : {
|
|
"description" : "A Successful Endeavor",
|
|
"content" : {
|
|
"application/json" : {
|
|
"schema" : {
|
|
"$ref" : "#/components/schemas/TestResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"deprecated" : false
|
|
}
|
|
}
|
|
},
|
|
"components" : {
|
|
"schemas" : {
|
|
"String" : {
|
|
"type" : "string"
|
|
},
|
|
"TestResponse" : {
|
|
"properties" : {
|
|
"c" : {
|
|
"$ref" : "#/components/schemas/String"
|
|
}
|
|
},
|
|
"type" : "object"
|
|
},
|
|
"Int" : {
|
|
"format" : "int32",
|
|
"type" : "integer"
|
|
}
|
|
},
|
|
"securitySchemes" : { }
|
|
},
|
|
"security" : [ ],
|
|
"tags" : [ ]
|
|
}
|