{"openapi":"3.0.1","info":{"title":"Agullto_IMS.API","version":"1.0"},"paths":{"/api/InventoryManagement":{"get":{"tags":["InventoryManagement"],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}}}}}},"post":{"tags":["InventoryManagement"],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductViewModel"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProductViewModel"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/ProductViewModel"}}}},"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Product"}},"application/json":{"schema":{"$ref":"#/components/schemas/Product"}},"text/json":{"schema":{"$ref":"#/components/schemas/Product"}}}}}}},"/api/InventoryManagement/{id}":{"get":{"tags":["InventoryManagement"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/Product"}},"application/json":{"schema":{"$ref":"#/components/schemas/Product"}},"text/json":{"schema":{"$ref":"#/components/schemas/Product"}}}}}},"put":{"tags":["InventoryManagement"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductViewModel"}},"text/json":{"schema":{"$ref":"#/components/schemas/ProductViewModel"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/ProductViewModel"}}}},"responses":{"200":{"description":"OK"}}},"delete":{"tags":["InventoryManagement"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK"}}}},"/api/InventoryManagement/low-stock":{"get":{"tags":["InventoryManagement"],"responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Product"}}}}}}}},"/WeatherForecast":{"get":{"tags":["WeatherForecast"],"operationId":"GetWeatherForecast","responses":{"200":{"description":"OK","content":{"text/plain":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WeatherForecast"}}},"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WeatherForecast"}}},"text/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WeatherForecast"}}}}}}}}},"components":{"schemas":{"MeasurementUnit":{"enum":[0,1,2,3,4,5,6],"type":"integer","format":"int32"},"Product":{"required":["name"],"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string","nullable":true},"stock":{"type":"integer","format":"int32"},"department":{"$ref":"#/components/schemas/ProductDepartment"},"weightValue":{"type":"number","format":"double"},"unit":{"$ref":"#/components/schemas/MeasurementUnit"},"costPrice":{"type":"number","format":"double"},"sellingPrice":{"type":"number","format":"double"},"location":{"type":"string","nullable":true},"expirationDate":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"ProductDepartment":{"enum":[0,1,2,3,4,5,6],"type":"integer","format":"int32"},"ProductViewModel":{"required":["name"],"type":"object","properties":{"name":{"type":"string","nullable":true},"stock":{"type":"integer","format":"int32"},"department":{"$ref":"#/components/schemas/ProductDepartment"},"weightValue":{"type":"number","format":"double"},"unit":{"$ref":"#/components/schemas/MeasurementUnit"},"costPrice":{"type":"number","format":"double"},"sellingPrice":{"type":"number","format":"double"},"location":{"type":"string","nullable":true},"expirationDate":{"type":"string","format":"date-time","nullable":true}},"additionalProperties":false},"WeatherForecast":{"type":"object","properties":{"date":{"type":"string","format":"date"},"temperatureC":{"type":"integer","format":"int32"},"temperatureF":{"type":"integer","format":"int32","readOnly":true},"summary":{"type":"string","nullable":true}},"additionalProperties":false}}}}