Method: ThreeScale::API::Client#create_application
- Defined in:
- lib/3scale/api/client.rb
#create_application(account_id, attributes = {}, plan_id:, **rest) ⇒ Hash
Returns an Application.
70 71 72 73 74 |
# File 'lib/3scale/api/client.rb', line 70 def create_application(account_id, attributes = {}, plan_id:, **rest) body = { plan_id: plan_id }.merge(attributes).merge(rest) response = http_client.post("/admin/api/accounts/#{account_id}/applications", body: body) extract(entity: 'application', from: response) end |