{"openapi": "3.1.0", "info": {"title": "NinjaAPI", "version": "1.0.0", "description": ""}, "paths": {"/api/treestatus/stack": {"get": {"operationId": "lando_treestatus_api_api_get_stack", "summary": "Api Get Stack", "parameters": [], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Result_list_StackEntry__"}}}}, "416": {"description": "Range Not Satisfiable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "418": {"description": "I'm a Teapot", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "451": {"description": "Unavailable For Legal Reasons", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "425": {"description": "Too Early", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "429": {"description": "Too Many Requests", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "400": {"description": "Bad Request", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "401": {"description": "Unauthorized", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "402": {"description": "Payment Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "403": {"description": "Forbidden", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "404": {"description": "Not Found", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "405": {"description": "Method Not Allowed", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "406": {"description": "Not Acceptable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "407": {"description": "Proxy Authentication Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "408": {"description": "Request Timeout", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "410": {"description": "Gone", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "411": {"description": "Length Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "412": {"description": "Precondition Failed", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}}, "description": "Handler for `GET /stack`."}}, "/api/treestatus/trees": {"get": {"operationId": "lando_treestatus_api_api_get_trees", "summary": "Api Get Trees", "parameters": [{"in": "query", "name": "is_active", "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Active"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Result_dict_str__TreeData__"}}}}}, "description": "Handler for `GET /trees`."}}, "/api/treestatus/trees2": {"get": {"operationId": "lando_treestatus_api_api_get_trees2", "summary": "Api Get Trees2", "parameters": [{"in": "query", "name": "is_active", "schema": {"anyOf": [{"type": "boolean"}, {"type": "null"}], "title": "Is Active"}, "required": false}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Result_list_TreeData__"}}}}, "416": {"description": "Range Not Satisfiable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "418": {"description": "I'm a Teapot", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "451": {"description": "Unavailable For Legal Reasons", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "425": {"description": "Too Early", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "429": {"description": "Too Many Requests", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "400": {"description": "Bad Request", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "401": {"description": "Unauthorized", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "402": {"description": "Payment Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "403": {"description": "Forbidden", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "404": {"description": "Not Found", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "405": {"description": "Method Not Allowed", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "406": {"description": "Not Acceptable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "407": {"description": "Proxy Authentication Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "408": {"description": "Request Timeout", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "410": {"description": "Gone", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "411": {"description": "Length Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "412": {"description": "Precondition Failed", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}}, "description": "Handler for `GET /trees2`."}}, "/api/treestatus/trees/{tree}": {"get": {"operationId": "lando_treestatus_api_api_get_tree", "summary": "Api Get Tree", "parameters": [{"in": "path", "name": "tree", "schema": {"title": "Tree", "type": "string"}, "required": true}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Result_TreeData_"}}}}}, "description": "Handler for `GET /trees/{tree}`."}}, "/api/treestatus/trees/{tree}/logs": {"get": {"operationId": "lando_treestatus_api_api_get_logs", "summary": "Api Get Logs", "parameters": [{"in": "path", "name": "tree", "schema": {"title": "Tree", "type": "string"}, "required": true}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Result_list_LogEntry__"}}}}, "416": {"description": "Range Not Satisfiable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "418": {"description": "I'm a Teapot", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "451": {"description": "Unavailable For Legal Reasons", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "425": {"description": "Too Early", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "429": {"description": "Too Many Requests", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "400": {"description": "Bad Request", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "401": {"description": "Unauthorized", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "402": {"description": "Payment Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "403": {"description": "Forbidden", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "404": {"description": "Not Found", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "405": {"description": "Method Not Allowed", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "406": {"description": "Not Acceptable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "407": {"description": "Proxy Authentication Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "408": {"description": "Request Timeout", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "410": {"description": "Gone", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "411": {"description": "Length Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "412": {"description": "Precondition Failed", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}}, "description": "Handler for `GET /trees/{tree}/logs`."}}, "/api/treestatus/trees/{tree}/logs_all": {"get": {"operationId": "lando_treestatus_api_api_get_logs_all", "summary": "Api Get Logs All", "parameters": [{"in": "path", "name": "tree", "schema": {"title": "Tree", "type": "string"}, "required": true}], "responses": {"200": {"description": "OK", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Result_list_LogEntry__"}}}}, "416": {"description": "Range Not Satisfiable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "418": {"description": "I'm a Teapot", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "451": {"description": "Unavailable For Legal Reasons", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "425": {"description": "Too Early", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "429": {"description": "Too Many Requests", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "400": {"description": "Bad Request", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "401": {"description": "Unauthorized", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "402": {"description": "Payment Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "403": {"description": "Forbidden", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "404": {"description": "Not Found", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "405": {"description": "Method Not Allowed", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "406": {"description": "Not Acceptable", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "407": {"description": "Proxy Authentication Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "408": {"description": "Request Timeout", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "409": {"description": "Conflict", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "410": {"description": "Gone", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "411": {"description": "Length Required", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}, "412": {"description": "Precondition Failed", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ProblemDetail"}}}}}, "description": "Handler for `GET /trees/{tree}/logs_all`."}}}, "components": {"schemas": {"LastState": {"description": "Expected schema for a \"last state\" object.", "properties": {"log_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Log Id"}, "reason": {"title": "Reason", "type": "string"}, "status": {"title": "Status", "type": "string"}, "tags": {"items": {"type": "string"}, "title": "Tags", "type": "array"}, "current_log_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Current Log Id"}, "current_reason": {"title": "Current Reason", "type": "string"}, "current_status": {"title": "Current Status", "type": "string"}, "current_tags": {"items": {"type": "string"}, "title": "Current Tags", "type": "array"}}, "required": ["log_id", "reason", "status", "tags", "current_log_id", "current_reason", "current_status", "current_tags"], "title": "LastState", "type": "object"}, "Result_list_StackEntry__": {"properties": {"result": {"items": {"$ref": "#/components/schemas/StackEntry"}, "title": "Result", "type": "array"}}, "required": ["result"], "title": "Result[list[StackEntry]]", "type": "object"}, "StackEntry": {"description": "Expected schema of a stack entry.", "properties": {"id": {"title": "Id", "type": "integer"}, "reason": {"title": "Reason", "type": "string"}, "status": {"title": "Status", "type": "string"}, "trees": {"items": {"$ref": "#/components/schemas/TreesEntry"}, "title": "Trees", "type": "array"}, "when": {"format": "date-time", "title": "When", "type": "string"}, "who": {"title": "Who", "type": "string"}}, "required": ["id", "reason", "status", "trees", "when", "who"], "title": "StackEntry", "type": "object"}, "TreesEntry": {"description": "Expected schema for a \"trees\" entry in the stack.", "properties": {"id": {"title": "Id", "type": "integer"}, "last_state": {"$ref": "#/components/schemas/LastState"}, "tree": {"title": "Tree", "type": "string"}}, "required": ["id", "last_state", "tree"], "title": "TreesEntry", "type": "object"}, "ProblemDetail": {"description": "RFC 7807-style JSON response on error.", "properties": {"title": {"title": "Title", "type": "string"}, "status": {"title": "Status", "type": "integer"}, "detail": {"title": "Detail", "type": "string"}, "type": {"title": "Type", "type": "string"}}, "required": ["title", "status", "detail", "type"], "title": "ProblemDetail", "type": "object"}, "Result_dict_str__TreeData__": {"properties": {"result": {"additionalProperties": {"$ref": "#/components/schemas/TreeData"}, "title": "Result", "type": "object"}}, "required": ["result"], "title": "Result[dict[str, TreeData]]", "type": "object"}, "TreeData": {"description": "Expected schema of a tree.", "properties": {"category": {"anyOf": [{"type": "string"}, {"type": "null"}], "title": "Category"}, "log_id": {"anyOf": [{"type": "integer"}, {"type": "null"}], "title": "Log Id"}, "message_of_the_day": {"title": "Message Of The Day", "type": "string"}, "reason": {"title": "Reason", "type": "string"}, "status": {"$ref": "#/components/schemas/TreeStatus"}, "tags": {"items": {"type": "string"}, "title": "Tags", "type": "array"}, "tree": {"title": "Tree", "type": "string"}}, "required": ["category", "log_id", "message_of_the_day", "reason", "status", "tags", "tree"], "title": "TreeData", "type": "object"}, "TreeStatus": {"description": "Allowable statuses of a tree.", "enum": ["open", "closed", "approval required"], "title": "TreeStatus", "type": "string"}, "Result_list_TreeData__": {"properties": {"result": {"items": {"$ref": "#/components/schemas/TreeData"}, "title": "Result", "type": "array"}}, "required": ["result"], "title": "Result[list[TreeData]]", "type": "object"}, "Result_TreeData_": {"properties": {"result": {"$ref": "#/components/schemas/TreeData"}}, "required": ["result"], "title": "Result[TreeData]", "type": "object"}, "LogEntry": {"description": "Expected schema of a log entry.", "properties": {"id": {"title": "Id", "type": "integer"}, "reason": {"title": "Reason", "type": "string"}, "status": {"title": "Status", "type": "string"}, "tags": {"items": {"type": "string"}, "title": "Tags", "type": "array"}, "tree": {"title": "Tree", "type": "string"}, "when": {"format": "date-time", "title": "When", "type": "string"}, "who": {"title": "Who", "type": "string"}}, "required": ["id", "reason", "status", "tags", "tree", "when", "who"], "title": "LogEntry", "type": "object"}, "Result_list_LogEntry__": {"properties": {"result": {"items": {"$ref": "#/components/schemas/LogEntry"}, "title": "Result", "type": "array"}}, "required": ["result"], "title": "Result[list[LogEntry]]", "type": "object"}}}, "servers": []}