{"openapi":"3.0.0","info":{"title":"10w40 - Motorcycle Maintenace Tracking System API","description":"10w40 is a Motorcycle Maintenace Tracking System (MMTS) used to track all \nmaintenance activities of your motorcycles","version":"0.1.0"},"servers":[{"url":"http://api.10w40.example.com/v1"}],"components":{"schemas":{"Motorcycle":{"type":"object","properties":{"id":{"type":"integer","format":"int64"},"make":{"type":"string","example":"Yamaha Motor"},"model":{"type":"string","example":"Tracer 7 GT"},"year":{"type":"integer","format":"int64","example":"2024"},"displacement":{"type":"integer","format":"int64","example":689}}},"MaintenanceActivity":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Unique identifier for the maintenance activity."},"motorcycleId":{"type":"integer","format":"int64","description":"The unique identifier of the motorcycle associated with this maintenance activity."},"type":{"type":"string","description":"The type of maintenance activity. Periodic activities are done periodically according to manufacturer recommendation. Repair activities are done when some components are broken during daily usage.","enum":["Periodic","Repair"],"example":"Periodic"},"date":{"type":"string","format":"date","description":"The date when the maintenance activity was performed.","example":"2023-08-15"},"odometerReading":{"type":"integer","format":"int32","description":"The odometer reading of the motorcycle at the time of maintenance.","example":12000},"description":{"type":"string","description":"A brief description of the maintenance activity.","example":"Oil change and chain adjustment."},"replacedParts":{"type":"array","description":"A list of parts or liquids that were replaced during the maintenance activity.","items":{"type":"object","properties":{"partType":{"type":"string","description":"The type of the replaced part.","example":"Engine Oil"},"partName":{"type":"string","description":"The name of the replaced part.","example":"Yamalube GP Tech 10w40"}}}}},"required":["id","motorcycleId","type","date","odometerReading"]}}}}