Welcome to mirror list, hosted at ThFree Co, Russian Federation.

x509_issuer.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 22429560c72effd69962ffd96271b6989792f55f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module API
  module Entities
    class X509Issuer < Grape::Entity
      expose :id, documentation: { type: 'integer', example: 1 }
      expose :subject, documentation: { type: 'string', example: 'CN=PKI,OU=Example,O=World' }
      expose :subject_key_identifier, documentation: {
        type: 'string',
        example: 'AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB:AB'
      }
      expose :crl_url, documentation: { type: 'string', example: 'http://example.com/pki.crl' }
    end
  end
end