Add endpoints to get categories and classese

This commit is contained in:
april
2024-01-09 16:03:57 -06:00
parent f78be2cf86
commit dafcacf28a
2 changed files with 55 additions and 1 deletions

View File

@@ -6,6 +6,37 @@ from pydantic_core.core_schema import ValidationInfo
from schemas.utils import PyObjectId, PositiveFloat
category_class = {
"Airplane": [
"Single-Engine Land",
"Multi-Engine Land",
"Single-Engine Sea",
"Multi-Engine Sea",
],
"Rotorcraft": [
"Helicopter",
"Gyroplane",
],
"Powered Lift": [
"Powered Lift",
],
"Glider": [
"Glider",
],
"Lighter-Than-Air": [
"Airship",
"Balloon",
],
"Powered Parachute": [
"Powered Parachute Land",
"Powered Parachute Sea",
],
"Weight-Shift Control": [
"Weight-Shift Control Land",
"Weight-Shift Control Sea",
],
}
class AircraftCategory(Enum):
airplane = "Airplane"