Epignosis (TalentLMS, eFront, TalentCards) User Type API

The User Type API from Epignosis (TalentLMS, eFront, TalentCards) — 2 operation(s) for user type.

OpenAPI Specification

epignosis-talentlms-efront-talentcards-user-type-api-openapi.yml Raw ↑
openapi: 3.0.0
info:
  version: 1.0.0
  title: Efront Account User Type 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: User Type
paths:
  /user-types:
    get:
      tags:
      - User Type
      description: Returns the list of the available user types.
      responses:
        '200':
          description: A JSON array of user types.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      $ref: '#/components/schemas/id'
                    name:
                      type: string
                      example: Administrator
                    basic_user_type:
                      type: integer
                      minimum: 1
                      nullable: true
        '400':
          $ref: '#/components/responses/errorResponse'
  /user-type/{id}:
    get:
      tags:
      - User Type
      description: Returns information about user type with the requested identifier.
      parameters:
      - $ref: '#/components/parameters/id'
      responses:
        '200':
          description: A JSON array of the specific user type.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    $ref: '#/components/schemas/id'
                  name:
                    type: string
                    example: Administrator
                  basic_user_type:
                    type: integer
                    minimum: 1
                    nullable: true
        '400':
          $ref: '#/components/responses/errorResponse'
components:
  parameters:
    id:
      name: id
      in: path
      required: true
      style: simple
      explode: false
      schema:
        minimum: 1
        type: integer
        format: int32
        example: 1
  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'
  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'
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic