Initial commit

This commit is contained in:
Yaser
2026-08-13 19:56:46 +03:30
commit de1d57a67b
474 changed files with 43185 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
# frozen_string_literal: true
module API
module V2
module Entities
class Permission < API::V2::Entities::Base
expose :id,
documentation: {
type: 'Integer',
desc: 'Permission id'
}
expose :action,
documentation: {
type: 'String',
desc: 'Permission action: accept (allow access (drop access), audit (record activity)'
}
expose :role,
documentation: {
type: 'String',
desc: 'Permission user role'
}
expose :verb,
documentation: {
type: 'String',
desc: 'Permission verb: put, post, delete, get'
}
expose :path,
documentation: {
type: 'String',
desc: 'API path'
}
expose :topic,
documentation: {
type: 'String',
desc: 'Permission topic: general, session etc'
}
with_options(format_with: :iso_timestamp) do
expose :created_at
expose :updated_at
end
end
end
end
end