Skip to content

Commit

Permalink
Introducing API endpoint for automate namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
skateman committed Aug 8, 2019
1 parent f9bb012 commit a90fb5c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/controllers/api/automate_namespaces_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Api
class AutomateNamespacesController < BaseController
def delete_resource(type, id = nil, _data = {})
raise BadRequestError, "Must specify an id for deleting a #{type} resource" unless id

delete_resource_action(type, id)
end
end
end
27 changes: 27 additions & 0 deletions config/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,33 @@
:delete:
- :name: delete
:identifier: miq_ae_domain_delete
:automate_namespaces:
:description: Automate Namespaces
:options:
- :collection
:verbs: *gpppd
:klass: MiqAeNamespace
:collection_actions:
:get:
- :name: read
:identifier: miq_ae_namespace_view
:post:
- :name: create
:identifier: miq_ae_namespace_new
:resource_actions:
:get:
- :name: read
:identifier: miq_ae_namespace_view
:post:
- :name: create
:identifier: miq_ae_namespace_new
- name: edit
:identifier: miq_ae_namespace_edit
- name: delete
:identifier: miq_ae_namespace_delete
:delete:
- name: delete
:identifier: miq_ae_namespace_delete
:automate_workspaces:
:description: Automate Workspaces
:options:
Expand Down

0 comments on commit a90fb5c

Please sign in to comment.