Sha256: 496e3c45ed63ce17fee96f9cd21d31620a9898741c2332b423dd068af33d10b8

Contents?: true

Size: 698 Bytes

Versions: 92

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true

namespace :api do
  # The UKRDC XML API
  namespace :ukrdc, defaults: { format: :xml } do
    resources :patients,
              only: :show,
              constraints: { format: :xml }
  end
  # The JSON API
  namespace :v1, constraints: { format: :json }, defaults: { format: :json } do
    resources :patients, only: [:show, :index], controller: "patients/patients" do
      resources :prescriptions, controller: "medications/prescriptions", only: [:index]
      namespace :hd do
        resource :current_profile,
                 only: :show,
                 path: "/profiles/current",
                 controller: "current_profile"
      end
    end
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
renalware-core-2.1.1 config/routes/api.rb
renalware-core-2.1.0 config/routes/api.rb
renalware-core-2.0.167 config/routes/api.rb
renalware-core-2.0.166 config/routes/api.rb
renalware-core-2.0.165 config/routes/api.rb
renalware-core-2.0.164 config/routes/api.rb
renalware-core-2.0.163 config/routes/api.rb
renalware-core-2.0.162 config/routes/api.rb
renalware-core-2.0.161 config/routes/api.rb
renalware-core-2.0.160 config/routes/api.rb
renalware-core-2.0.159 config/routes/api.rb
renalware-core-2.0.158 config/routes/api.rb
renalware-core-2.0.157 config/routes/api.rb
renalware-core-2.0.156 config/routes/api.rb
renalware-core-2.0.155 config/routes/api.rb
renalware-core-2.0.153 config/routes/api.rb
renalware-core-2.0.152 config/routes/api.rb
renalware-core-2.0.151 config/routes/api.rb
renalware-core-2.0.149 config/routes/api.rb
renalware-core-2.0.148 config/routes/api.rb