Initial commit
This commit is contained in:
32
app/api/v2/admin/entities/profile.rb
Normal file
32
app/api/v2/admin/entities/profile.rb
Normal file
@@ -0,0 +1,32 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API::V2::Admin
|
||||
module Entities
|
||||
class Profile < API::V2::Entities::Profile
|
||||
expose :first_name,
|
||||
documentation: {
|
||||
type: 'String',
|
||||
desc: 'first name'
|
||||
}
|
||||
|
||||
expose :last_name,
|
||||
documentation: {
|
||||
type: 'String',
|
||||
desc: 'Last name'
|
||||
}
|
||||
|
||||
expose :national_code,
|
||||
documentation: {
|
||||
type: 'String',
|
||||
desc: 'National Code'
|
||||
}
|
||||
|
||||
expose :dob,
|
||||
documentation: {
|
||||
type: 'Date',
|
||||
desc: 'Birth date'
|
||||
}
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user