Chore: API Improvements (#3469)
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user