Class: GdsApi::PublishingApi

Inherits:
Base
  • Object
show all
Defined in:
lib/gds_api/publishing_api.rb,
lib/gds_api/publishing_api/special_route_publisher.rb

Defined Under Namespace

Classes: SpecialRoutePublisher

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#client, #create_client, #get_list, #initialize, #url_for_slug

Constructor Details

This class inherits a constructor from GdsApi::Base

Instance Method Details

#destroy_intent(base_path) ⇒ Object



9
10
11
12
13
# File 'lib/gds_api/publishing_api.rb', line 9

def destroy_intent(base_path)
  delete_json(intent_url(base_path))
rescue GdsApi::HTTPNotFound => e
  e
end

#put_intent(base_path, payload) ⇒ Object



5
6
7
# File 'lib/gds_api/publishing_api.rb', line 5

def put_intent(base_path, payload)
  put_json(intent_url(base_path), payload)
end

#put_path(base_path, payload) ⇒ Object

Deprecated.

Use GdsApi::PublishingApiV2



16
17
18
# File 'lib/gds_api/publishing_api.rb', line 16

def put_path(base_path, payload)
  put_json(paths_url(base_path), payload)
end