openapi: 3.0.0 info: version: 1.0.0 title: Accounts API description: Account example API servers: - url: https://integration-addon-test-api-app-66f66763cca2.herokuapp.com/ paths: /hello: get: description: Be nice, be happy parameters: - name: name in: query schema: type: string required: true responses: '200': description: Says hello content: text/plain: schema: type: string /accounts: post: description: Returns list of [optionally] edited array of Accounts x-salesforce: permissionSets: [AccountApi] requestBody: required: true content: application/json: schema: type: object properties: count: type: integer responses: '200': description: Successfully returned a list of Accounts content: application/json: schema: type: array items: type: object properties: id: type: string name: type: string '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' '500': $ref: '#/components/responses/DeveloperError' '503': $ref: '#/components/responses/UnknownError' /unitofwork: post: description: Receives a payload containing Account, Contact, and Case details and uses the Unit of Work pattern to assign the corresponding values to to its Record while maintaining the relationships. It then commits the unit of work and returns the Record Id's for each object. x-salesforce: permissionSets: [AccountApi] requestBody: required: true content: application/json: schema: type: object properties: accountName: type: string lastName: type: string subject: type: string responses: '200': description: Successfully returned a list of Accounts content: application/json: schema: type: array items: type: object properties: id: type: string name: type: string '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' '500': $ref: '#/components/responses/DeveloperError' '503': $ref: '#/components/responses/UnknownError' components: responses: NotFound: description: The specified resource was not found content: application/json: schema: $ref: '#/components/schemas/Error' Unauthorized: description: Unauthorized content: application/json: schema: $ref: '#/components/schemas/Error' DeveloperError: description: DeveloperError content: application/json: schema: $ref: '#/components/schemas/Error' UnknownError: description: UnknownrError content: application/json: schema: $ref: '#/components/schemas/Error' schemas: # Schema for error response body Error: type: object properties: code: type: string message: type: string required: - code - message