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