feat: APIs for Integration Hooks (#2250)

- Introduces JSON Schema validations via JSONSchemer
- Add CRUD APIs for integration hooks
This commit is contained in:
Sojan Jose
2021-05-17 10:32:59 +05:30
committed by GitHub
parent 4aa35953c4
commit d5215fea93
21 changed files with 265 additions and 21 deletions

View File

@@ -1,12 +1,16 @@
FactoryBot.define do
factory :integrations_hook, class: 'Integrations::Hook' do
status { Integrations::Hook.statuses['enabled'] }
app_id { 'slack' }
inbox
account
app_id { 'slack' }
settings { { 'test': 'test' } }
hook_type { Integrations::Hook.statuses['account'] }
status { Integrations::Hook.statuses['enabled'] }
access_token { SecureRandom.hex }
reference_id { SecureRandom.hex }
trait :dialogflow do
app_id { 'dialogflow' }
settings { { project_id: 'test', credentials: {} } }
end
end
end