Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove old sketch of new api adapter code

This was added as part of the initial sketches of the registration API. They're no longer used and are now needless clutter.
  • Loading branch information...
commit a350c0ab8a1975164cabc5db9efcc83523ad7526 1 parent 1fb6cc4
@jystewart jystewart authored
Showing with 0 additions and 39 deletions.
  1. +0 −39 features/support/api_extensions.rb
View
39 features/support/api_extensions.rb
@@ -1,39 +0,0 @@
-require 'gds_api/json_client'
-
-class GdsApi::PanopticonApi < GdsApi::Base
- def register(details)
- put_json(base_url + ".json", artefact: details)
- end
-
- private
- def adapter_name
- "panopticon"
- end
-
- def base_url
- "#{endpoint}/artefacts"
- end
-end
-
-# namespace :core_api do
-# desc "Register application metadata with panopticon"
-# task :register => :environment do
-# flow_registry = SmartAnswer::FlowRegistry.new
-# flow = flow_registry.flows.first
-# presenter = TextPresenter.new(flow)
-
-# interface = GdsApi::PanopticonApi.new
-# interface.register({
-# need_id: flow.need_id,
-# slug: flow.name,
-# title: presenter.title,
-# description: presenter.description,
-# format: "smart_answer",
-# section: presenter.section_slug,
-# subsection: presenter.subsection_slug,
-# link: "/#{flow.name}",
-# indexable_content: presenter.text,
-# owning_app: 'smart-answers'
-# })
-# end
-# end
Please sign in to comment.
Something went wrong with that request. Please try again.