Sha256: 1a5b56833ccd2435d310a2e743f9165e95b5dff81527429536f9df82cecb0703

Contents?: true

Size: 812 Bytes

Versions: 9

Compression:

Stored size: 812 Bytes

Contents

class <%= @platform_module_name %>::Dosser::<%= @version_module_name %>::PortalsController < <%= @platform_module_name %>::Dosser::<%= @version_module_name %>::PresentationController

  def show
    render_ok collection: [
      {
        name: '<%= @platform_module_name %> API <%= @version_name %>',
        links: [
          { rel: 'self',      href: <%= @platform_name %>_dosser_<%= @version_name %>_portal_url(Unidom::Common::SELF, format: request.format.symbol) },
          { rel: 'canonial',  href: <%= @platform_name %>_dosser_<%= @version_name %>_portal_url(Unidom::Common::SELF, format: :json                ) },
          { rel: 'alternate', href: <%= @platform_name %>_dosser_<%= @version_name %>_portal_url(Unidom::Common::SELF, format: :xml                 ) }
        ]
      }
    ]
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
repres-dosser-2.0 lib/generators/repres/dosser/platform/templates/app/controllers/portals_controller.rb.erb
repres-dosser-1.9 lib/generators/repres/dosser/platform/templates/app/controllers/portals_controller.rb.erb
repres-dosser-1.8.3 lib/generators/repres/dosser/platform/templates/app/controllers/portals_controller.rb.erb
repres-dosser-1.8.2 lib/generators/repres/dosser/platform/templates/app/controllers/portals_controller.rb.erb
repres-dosser-1.8.1 lib/generators/repres/dosser/platform/templates/app/controllers/portals_controller.rb.erb
repres-dosser-1.8 lib/generators/repres/dosser/platform/templates/app/controllers/portals_controller.rb.erb
repres-dosser-1.7 lib/generators/repres/dosser/platform/templates/app/controllers/portals_controller.rb.erb
repres-dosser-1.6.3 lib/generators/repres/dosser/platform/templates/app/controllers/portals_controller.rb.erb
repres-dosser-1.6.2 lib/generators/repres/dosser/platform/templates/controllers/portals_controller.rb