openapi: 3.0.0 info: version: 1.0.0 title: Efront Account Category API description: Efront API Documentation servers: - url: https://virtserver.swaggerhub.com/Epignosis/Efront-API/1.0.0 description: SwaggerHub API Auto Mocking - url: https://ssc.efrontlearning.com/API/v1.0 security: - basicAuth: [] tags: - name: Category paths: /Category/{Id}: get: tags: - Category description: Returns information about the category with the associated Id. parameters: - $ref: '#/components/parameters/Id' responses: '200': description: A JSON array with the requested category. content: application/json: schema: allOf: - type: object properties: data: type: object properties: id: $ref: '#/components/schemas/id' name: type: string example: Security branch: type: integer format: int32 minimum: 1 description: The branch id that the category belongs to. - $ref: '#/components/schemas/standardResponse' '404': $ref: '#/components/responses/404NotFound' /Categories: get: tags: - Category description: Returns the category list (tree structured). responses: '200': description: A JSON array with the categories. content: application/json: schema: allOf: - type: object properties: data: type: array items: type: object properties: id: $ref: '#/components/schemas/id' name: type: string example: Marketing - $ref: '#/components/schemas/standardResponse' '400': $ref: '#/components/responses/errorResponse' components: responses: errorResponse: description: Bad request content: application/json: schema: allOf: - type: object properties: error: type: object properties: code: type: integer description: same as the response code minimum: 400 default: 400 message: type: string description: A message that points out that something went wrong. example: Not possible to get the requested resource information. reason: type: string nullable: true - $ref: '#/components/schemas/standardResponse' 404NotFound: description: Bad request content: application/json: schema: allOf: - type: object properties: error: type: object properties: code: type: integer description: same as the response code default: 404 message: type: string description: A message that points out that something went wrong. example: The requested resource was not found. reason: type: string nullable: true - $ref: '#/components/schemas/standardResponse' schemas: id: type: integer format: int32 minimum: 1 description: The resource id. standardResponse: type: object properties: executionDuration: type: number format: float example: 0.5281 success: type: boolean enum: - true - false version: type: number format: float default: '1.0' parameters: Id: name: Id in: path required: true style: simple explode: false schema: minimum: 1 type: integer format: int32 example: 1 securitySchemes: basicAuth: type: http scheme: basic