x-generator: NSwag v13.18.2.0 (NJsonSchema v10.8.0.0 (Newtonsoft.Json v11.0.0.0))
swagger: '2.0'
info:
  title: Absorb Integration API
  version: v2
consumes:
  - application/json
produces:
  - application/json
paths:
  /competency-definitions/{competencyDefinitionId}:
    get:
      tags:
        - Competency Definitions
      summary: Gets a single competency definition by ID.
      operationId: CompetencyDefinitions_GetCompetencyDefinition
      parameters:
        - type: string
          name: competencyDefinitionId
          in: path
          required: true
          description: The competency definition ID.
          format: guid
          x-nullable: false
        - type: string
          name: x-api-key
          in: header
        - type: string
          name: x-api-version
          in: header
          description: '2'
      responses:
        '200':
          x-nullable: false
          description: ''
          schema:
            $ref: '#/definitions/CompetencyDefinitionResource'
        '403':
          x-nullable: false
          description: User does not have permission to retrieve competency definitions.
          schema:
            $ref: '#/definitions/GenericErrorResponse'
        '404':
          x-nullable: false
          description: Competency definition not found.
          schema:
            $ref: '#/definitions/GenericErrorResponse'
      security:
        - api_key: []
definitions:
  CompetencyDefinitionResource:
    type: object
    description: A resource representing a single competency definition.
    properties:
      id:
        type: string
        description: The unique identifier for the competency definition.
        format: guid
      name:
        type: string
        description: The name of the competency definition.
      description:
        type: string
        description: The description of the competency definition.
      category:
        type: string
        description: The category of the competency definition.
      categoryId:
        type: string
        description: The category id of the competency definition.
        format: guid
      hasBadge:
        type: boolean
        description: If competency definition has badge.
      badgeUrl:
        type: string
        description: The url for the badge image, if any.
      leaderboardPoints:
        type: integer
        description: The Leader board point, if any.
        format: int32
      badgeImage:
        description: The competency badge.
        allOf:
          - $ref: '#/definitions/FileResource'
      dateAdded:
        type: string
        description: The date the competency definition was added.
        format: date-time
      dateEdited:
        type: string
        description: The date the competency definition was edited.
        format: date-time
  Link:
    type: object
    properties:
      Rel:
        $ref: '#/definitions/Relation'
      Items:
        type: array
        items:
          $ref: '#/definitions/LinkItem'
  Relation:
    type: object
    properties:
      Name:
        type: string
  LinkItem:
    type: object
    properties:
      Href:
        type: string
      Name:
        type: string
      Templated:
        type: boolean
      Type:
        type: string
      Deprecation:
        type: string
      Profile:
        type: string
      Title:
        type: string
      Hreflang:
        type: string
  IEmbeddedResource:
    type: object
    x-abstract: true
    properties:
      Name:
        type: string
      Resources:
        type: array
        items:
          $ref: '#/definitions/IResource'
  IResource:
    type: object
    x-abstract: true
    properties:
      Links:
        type: array
        items:
          $ref: '#/definitions/Link'
      EmbeddedResources:
        type: array
        items:
          $ref: '#/definitions/IEmbeddedResource'
  FileResource:
    type: object
    description: A resource representing a file source.
    properties:
      source:
        type: string
        description: The source.
      sourceType:
        description: >-
          Describes whether the value of `source` is a fully qualified `Url` or
          an ID of a `File` in the LMS.


          Possible Enum Values: `Url = Url` `File = File` 
        allOf:
          - $ref: '#/definitions/SourceType'
  SourceType:
    type: string
    description: Enums defining the source type.
    x-enumNames:
      - Url
      - File
    enum:
      - Url
      - File
  GenericErrorResponse:
    type: object
    description: |-
      This class is NOT to be used as an actual response. This is to be used as
      the return type for non-200 responses in `SwaggerResponse` attributes.
    properties:
      validations:
        type: array
        description: The validations (if any) which caused the error.
        items:
          type: string
      code:
        description: The status code returned.
        allOf:
          - $ref: '#/definitions/HttpStatusCode'
      message:
        type: string
        description: The error message.
      term:
        type: string
        description: The general error term.
      _meta:
        type: object
        description: 'A list of meta data (if any). '
        additionalProperties:
          type: string
  HttpStatusCode:
    type: integer
    description: ''
    x-enumNames:
      - Continue
      - SwitchingProtocols
      - OK
      - Created
      - Accepted
      - NonAuthoritativeInformation
      - NoContent
      - ResetContent
      - PartialContent
      - MultipleChoices
      - Ambiguous
      - MovedPermanently
      - Moved
      - Found
      - Redirect
      - SeeOther
      - RedirectMethod
      - NotModified
      - UseProxy
      - Unused
      - TemporaryRedirect
      - RedirectKeepVerb
      - BadRequest
      - Unauthorized
      - PaymentRequired
      - Forbidden
      - NotFound
      - MethodNotAllowed
      - NotAcceptable
      - ProxyAuthenticationRequired
      - RequestTimeout
      - Conflict
      - Gone
      - LengthRequired
      - PreconditionFailed
      - RequestEntityTooLarge
      - RequestUriTooLong
      - UnsupportedMediaType
      - RequestedRangeNotSatisfiable
      - ExpectationFailed
      - UpgradeRequired
      - InternalServerError
      - NotImplemented
      - BadGateway
      - ServiceUnavailable
      - GatewayTimeout
      - HttpVersionNotSupported
securityDefinitions:
  api_key:
    type: apiKey
    name: x-api-key
    in: header
tags:
  - name: Competency Definitions
x-servers:
  - url: https://rest.myabsorb.com
    description: US
  - url: https://rest.myabsorb.ca
    description: CA
  - url: https://rest.myabsorb.eu
    description: EU
  - url: https://rest.myabsorb.com.au
    description: AU
