openapi: 3.2.0 info: description: 'These APIs will return a collection of organizations based on a user''s profile security __The base endpoint URL for this API in production is:__ `https://marko.aramark.net/v1/profile/user`. 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: Profile Role API servers: - url: https://qa-marko.aramark.net/v1/profile/user description: Testing server - url: https://dev-marko.aramark.net/v1/profile/user description: Development server security: - apiKey: [] tags: - name: Role description: This API will return a list of Role Levels to which a user is mapped paths: /my_role: get: summary: User roles description: 'Return a collection of Roles to which a user is mapped !This endpoint is in production' operationId: getMyRole parameters: - $ref: '#/components/parameters/userIdParam' - $ref: '#/components/parameters/searchParam' - $ref: '#/components/parameters/bypassCacheParam' - $ref: '#/components/parameters/smokeParam' tags: - Role responses: '200': description: Roles to which a user is mapped. content: '*/*': schema: type: object properties: status: type: string description: ENUM 'Success' or 'Error' default: Success count: type: string description: Number of records returned in request roles: type: array items: $ref: '#/components/schemas/roles' '404': description: Requested resource does not exist. '405': description: HTTP Verb / Operation not supported components: parameters: 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 enum: - 'true' - 'false' userIdParam: name: user_id in: query description: Email address of user required: true schema: type: string default: last-first@aramark.com searchParam: name: search in: query description: Search string to find Organizations required: false schema: type: string schemas: roles: type: object properties: role_level: type: string description: Unique code for a level in the Aramark Organization role_level_number: type: string description: Digit associated with a level in the Aramark Organization securitySchemes: apiKey: type: apiKey in: header name: apikey description: This HTTP Header variable will verify security