openapi: 3.2.0 info: summary: Waste Tracking Data description: 'Information about food waste is provided either as a summary or filtered by `org_value`. The base endpoint URL for this API in production is: `https://marko.aramark.net/v1/service/daily`. For 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".' version: 1.0.0-oas3 title: Daily Food Waste Tracking Service Daily Food Waste API servers: - url: https://qa-marko.aramark.net/v1/service/daily description: Testing server - url: https://dev-marko.aramark.net/v1/service/daily description: Development server tags: - name: Service Daily Food Waste paths: /food_waste: get: summary: Daily Service Food Waste description: 'Returns ALL daily service food waste. Can filter also by org_value. !This endpoint is in production' operationId: getDailyFoodWaste tags: - Service Daily Food Waste parameters: - $ref: '#/components/parameters/startDateParam' - $ref: '#/components/parameters/endDateParam' - $ref: '#/components/parameters/sortParam' - $ref: '#/components/parameters/bypassCacheParam' - $ref: '#/components/parameters/smokeParam' responses: '200': description: Provides the Service Food Waste Summary Data content: application/json: schema: type: object properties: status: type: string description: ENUM 'Success' default: Success count: type: integer description: Number of records being returned measure: type: object items: $ref: '#/components/schemas/food_waste' '404': description: Requested resource does not exist. '405': description: HTTP Verb / Operation not supported /food_waste/{org_value}: get: summary: Amount of food waste per business organization description: 'Rolls up Daily Service Food Waste for a Specific Business Organization !This endpoint is in production' operationId: getDailyFoodWasteByOrgValue tags: - Service Daily Food Waste parameters: - $ref: '#/components/parameters/orgValueParam' - $ref: '#/components/parameters/startDateParam' - $ref: '#/components/parameters/endDateParam' - $ref: '#/components/parameters/sortParam' - $ref: '#/components/parameters/bypassCacheParam' - $ref: '#/components/parameters/smokeParam' responses: '200': description: Provides the Service Food Waste Summary Data content: application/json: schema: type: object properties: status: type: string description: ENUM 'Success' default: Success count: type: integer description: Number of records being returned measure: type: array items: $ref: '#/components/schemas/food_waste' '404': description: Requested resource does not exist. '405': description: HTTP Verb / Operation not supported components: schemas: food_waste: type: object properties: fiscal_period: type: string description: Fiscal Month of data fiscal_week_no: type: integer description: Fiscal Week of Month fiscal_day: type: integer description: Fiscal Day of Week fiscal_day_id: type: integer description: Fiscal Day ID org_value: type: string description: Aramark Organization code for rollup org_name: type: string description: Name or Aramark Organization rollup waste_currency: type: number description: Waste Dollars waste_weight: type: number description: Waste Weight waste_days_compliant: type: number description: Number of Days Waste was reported waste_days_required: type: number description: Number of Days Waste was expected to be reported parameters: bypassCacheParam: name: bypass-cache in: header description: This HTTP Header variable will bypass cache. schema: type: string enum: - 'true' - 'false' default: 'false' smokeParam: name: smoke in: header 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 orgValueParam: in: path name: org_value description: Aramark Organization Code required: true schema: type: string endDateParam: in: query name: end_date description: Calendar date for ending range of service dates. "mm/dd/yyyy" required: true schema: type: string startDateParam: in: query name: start_date description: Calendar date for starting range of service dates. "mm/dd/yyyy" required: true schema: type: string sortParam: in: query name: sort description: Result set sorting required: false schema: type: string enum: - ASC - DESC default: ASC securitySchemes: apiKeyAuth: type: apiKey in: header name: apikey description: This HTTP Header variable will verify permissions.