Chore: API Improvements (#3469)

This commit is contained in:
Sojan Jose
2021-11-27 00:48:46 +05:30
committed by GitHub
parent 55843c5bad
commit add004a56e
13 changed files with 55 additions and 13 deletions
@@ -1 +1 @@
json.partial! 'api/v1/models/agent_bot.json.jbuilder', resource: @agent_bot
json.partial! 'api/v1/models/agent_bot.json.jbuilder', resource: AgentBotPresenter.new(@agent_bot)
@@ -1,3 +1,3 @@
json.array! @agent_bots do |agent_bot|
json.partial! 'api/v1/models/agent_bot.json.jbuilder', resource: agent_bot
json.partial! 'api/v1/models/agent_bot.json.jbuilder', resource: AgentBotPresenter.new(agent_bot)
end
@@ -1 +1 @@
json.partial! 'api/v1/models/agent_bot.json.jbuilder', resource: @agent_bot
json.partial! 'api/v1/models/agent_bot.json.jbuilder', resource: AgentBotPresenter.new(@agent_bot)
@@ -1 +1 @@
json.partial! 'api/v1/models/agent_bot.json.jbuilder', resource: @agent_bot
json.partial! 'api/v1/models/agent_bot.json.jbuilder', resource: AgentBotPresenter.new(@agent_bot)
@@ -3,3 +3,4 @@ json.name resource.name
json.description resource.description
json.outgoing_url resource.outgoing_url
json.account_id resource.account_id
json.access_token resource.access_token if resource.access_token.present?