{"openapi":"3.1.0","info":{"title":"Unusual Units API","version":"1.0.0","description":"An API for converting between standard and unusual measurement units"},"components":{"schemas":{},"parameters":{}},"paths":{"/types":{"get":{"tags":["Conversions"],"summary":"List all available conversion types","description":"Returns a list of all available conversion types supported by the API","operationId":"get_ListConversionTypes","responses":{"200":{"description":"List of conversion types","content":{"application/json":{"schema":{"type":"object","properties":{"types":{"type":"array","items":{"type":"string","example":"length"}}},"required":["types"]}}}}}}},"/types/{type}/units":{"get":{"tags":["Conversions"],"summary":"List all units for a specific conversion type","description":"Returns a list of all measurement units available for the specified conversion type","operationId":"get_ListUnits","parameters":[{"schema":{"type":"string","enum":["area","data","energy","length","mass","speed","time","volume"]},"required":true,"name":"type","in":"path"}],"responses":{"200":{"description":"List of units for the specified conversion type","content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["area","data","energy","length","mass","speed","time","volume"]},"units":{"type":"array","items":{"type":"string"}}},"required":["type","units"]}}}},"404":{"description":"Conversion type not found"}}}},"/convert/{type}/{fromUnit}/{toUnit}/{value}":{"get":{"tags":["Conversions"],"summary":"Convert a value from one unit to another","description":"Converts a value from a source unit to a target unit within the same conversion type","operationId":"get_ConvertSingle","parameters":[{"schema":{"type":"string","enum":["area","data","energy","length","mass","speed","time","volume"]},"required":true,"name":"type","in":"path"},{"schema":{"type":"string","description":"The source unit to convert from"},"required":true,"description":"The source unit to convert from","name":"fromUnit","in":"path"},{"schema":{"type":"string","description":"The target unit to convert to"},"required":true,"description":"The target unit to convert to","name":"toUnit","in":"path"},{"schema":{"type":"string","description":"The value to convert"},"required":true,"description":"The value to convert","name":"value","in":"path"}],"responses":{"200":{"description":"Conversion result","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"number"},"fromUnit":{"type":"string"},"toUnit":{"type":"string"},"result":{"type":"object","properties":{"value":{"type":"number"},"formatted":{"type":"string"}},"required":["value","formatted"]}},"required":["value","fromUnit","toUnit","result"]}}}},"400":{"description":"Invalid request parameters"},"404":{"description":"Conversion type or unit not found"}}}},"/convert/{type}/{fromUnit}/{value}":{"get":{"tags":["Conversions"],"summary":"Convert a value to all units of the same type","description":"Converts a value from a source unit to all available units within the same conversion type","operationId":"get_ConvertAll","parameters":[{"schema":{"type":"string","enum":["area","data","energy","length","mass","speed","time","volume"]},"required":true,"name":"type","in":"path"},{"schema":{"type":"string","description":"The source unit to convert from"},"required":true,"description":"The source unit to convert from","name":"fromUnit","in":"path"},{"schema":{"type":"string","description":"The value to convert"},"required":true,"description":"The value to convert","name":"value","in":"path"}],"responses":{"200":{"description":"Conversion results for all units","content":{"application/json":{"schema":{"type":"object","properties":{"value":{"type":"number"},"fromUnit":{"type":"string"},"results":{"type":"object","additionalProperties":{"type":"object","properties":{"value":{"type":"number"},"formatted":{"type":"string"}},"required":["value","formatted"]}}},"required":["value","fromUnit","results"]}}}},"400":{"description":"Invalid request parameters"},"404":{"description":"Conversion type or unit not found"}}}}},"webhooks":{}}