{"openapi":"3.1.0","info":{"title":"Excavator Productivity App","description":"Прототип системы расчета производительности карьерного экскаватора","version":"1.0.0"},"paths":{"/":{"get":{"summary":"Read Index","operationId":"read_index__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/calculate":{"post":{"summary":"Calculate","operationId":"calculate_calculate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExcavatorInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExcavatorResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ExcavatorInput":{"properties":{"bucket_volume":{"type":"number","exclusiveMinimum":0.0,"title":"Bucket Volume"},"bucket_fill_factor":{"type":"number","maximum":1.5,"exclusiveMinimum":0.0,"title":"Bucket Fill Factor"},"cycle_time_seconds":{"type":"number","exclusiveMinimum":0.0,"title":"Cycle Time Seconds"},"shift_hours":{"type":"number","maximum":24.0,"exclusiveMinimum":0.0,"title":"Shift Hours"},"shifts_per_day":{"type":"integer","maximum":4.0,"exclusiveMinimum":0.0,"title":"Shifts Per Day"},"working_days_per_year":{"type":"integer","maximum":366.0,"exclusiveMinimum":0.0,"title":"Working Days Per Year"},"service_interval_hours":{"type":"number","exclusiveMinimum":0.0,"title":"Service Interval Hours"},"service_duration_hours":{"type":"number","minimum":0.0,"title":"Service Duration Hours"},"emergency_downtime_percent":{"type":"number","maximum":100.0,"minimum":0.0,"title":"Emergency Downtime Percent"},"annual_plan_volume":{"anyOf":[{"type":"number","exclusiveMinimum":0.0},{"type":"null"}],"title":"Annual Plan Volume"}},"type":"object","required":["bucket_volume","bucket_fill_factor","cycle_time_seconds","shift_hours","shifts_per_day","working_days_per_year","service_interval_hours","service_duration_hours","emergency_downtime_percent"],"title":"ExcavatorInput"},"ExcavatorResult":{"properties":{"hourly_productivity":{"type":"number","title":"Hourly Productivity"},"scheduled_work_hours":{"type":"number","title":"Scheduled Work Hours"},"service_count":{"type":"integer","title":"Service Count"},"service_hours":{"type":"number","title":"Service Hours"},"emergency_downtime_hours":{"type":"number","title":"Emergency Downtime Hours"},"clean_work_hours":{"type":"number","title":"Clean Work Hours"},"technical_availability":{"type":"number","title":"Technical Availability"},"annual_productivity":{"type":"number","title":"Annual Productivity"},"plan_completion_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Plan Completion Percent"},"plan_is_completed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Plan Is Completed"},"recommendation":{"type":"string","title":"Recommendation"}},"type":"object","required":["hourly_productivity","scheduled_work_hours","service_count","service_hours","emergency_downtime_hours","clean_work_hours","technical_availability","annual_productivity","plan_completion_percent","plan_is_completed","recommendation"],"title":"ExcavatorResult"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}