{"openapi":"3.0.0","info":{"description":"\nThis API will return a collection of Prima Units of Measure for menu items and recipes\n\nThe base endpoint URL for this API in production is: `https://marko.aramark.net/v1/recipe`.\n\nFor testing the API with the \"Try\" tool on this page or in your app, use either our testing server \"qa-marko\" or our development server \"dev-marko\".\n","version":"1.0.0-oas3","title":"Units of Measure"},"tags":[{"name":"Units of Measure"}],"security":[{"apiKey":[]}],"paths":{"/units_of_measure":{"get":{"summary":"Units of measure","description":"\nReturns units of measure results\n\n![This endpoint is in production](/themes/portal/images/statuspngs/statusprod.png)\n","operationId":"getUnitsOfMeasure","parameters":[{"$ref":"#/components/parameters/uomIdParam"},{"$ref":"#/components/parameters/fieldsParam"},{"$ref":"#/components/parameters/smokeParam"},{"$ref":"#/components/parameters/smokeParam"}],"tags":["Units of Measure"],"responses":{"200":{"description":"Provides units of measure","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","description":"ENUM 'Success', 'Error' or 'Not Found'"},"count":{"type":"string","description":"Number of records returned by request"},"unit_of_measure":{"type":"array","items":{"$ref":"#/components/schemas/units_of_measure"}}}}}}},"404":{"description":"Requested resource does not exist."},"405":{"description":"HTTP Verb / Operation not supported"}}}}},"servers":[{"url":"https://qa-marko.aramark.net/v1/recipe","description":"Testing server"},{"url":"https://dev-marko.aramark.net/v1/recipe","description":"Development server"}],"components":{"securitySchemes":{"apiKey":{"type":"apiKey","in":"header","name":"apikey","description":"This HTTP Header variable will verify permissions."}},"parameters":{"uomIdParam":{"in":"query","name":"uom_id","description":"Unique ID of Recipe Unit of Measure","required":false,"schema":{"type":"string"}},"fieldsParam":{"name":"fields","in":"query","description":"Comma delimited list to reduce the number of fields in response object. When used the property \"uom_id\" will always be appended to the list for a consistent field for response testing.","required":false,"schema":{"type":"string"}},"bypassCacheParam":{"in":"header","name":"bypass-cache","description":"This HTTP Header variable will bypass cache.","schema":{"type":"string","enum":["true","false"],"default":"false"}},"smokeParam":{"in":"header","name":"smoke","description":"When set to 'true' this HTTP header variable will route the API call to the Integration testing environment. Only applicable in QA.","schema":{"type":"string","default":"false"}}},"schemas":{"units_of_measure":{"type":"object","properties":{"uom_id":{"type":"string","description":"Unit of measure ID from Prima"},"description":{"type":"string","description":"Unit of measure description"},"uom_type":{"type":"string","description":"Unit of measure type ie. COUNT, VOLUME, WEIGHT"},"ozw_factor":{"type":"number","description":"Decimal factor used for conversion of Once Weight"},"grams_factor":{"type":"number","description":"Decimal factor used for conversion of grams"},"tsp_factor":{"type":"number","description":"Decimal factor used for conversion of teaspoons"},"ml_factor":{"type":"number","description":"Decimal factor used for conversion of milliliters"},"standard_flag":{"type":"string","description":"Y/N is unit of measure in standard format"},"metric_flag":{"type":"string","description":"Y/N is unit of measure in metric format"},"uom_cut_flag":{"type":"string","description":"Y/N is unit of measure in cut size"}}}}}}