class EtFakeCcd::Service::CaseManagementWebApp

Private Instance Methods

config() click to toggle source
# File lib/et_fake_ccd/service/case_management_web_app.rb, line 46
def config
  EtFakeCcd.config
end
config_result() click to toggle source
# File lib/et_fake_ccd/service/case_management_web_app.rb, line 26
def config_result
  j = {
      "login_url": url_for("/authentication-web/login"),
      "logout_url": url_for("/api-gateway/logout"),
      "api_url": url_for("/api-gateway/aggregated"),
      "case_data_url": url_for("/api-gateway/data"),
      "document_management_url": url_for("/api-gateway/documents"),
      "pagination_page_size": 25,
      "oauth2_token_endpoint_url": url_for("/api-gateway/oauth2"),
      "oauth2_client_id": url_for("ccd_gateway")
  }
  JSON.generate(j)
end
url_for(path) click to toggle source
# File lib/et_fake_ccd/service/case_management_web_app.rb, line 40
def url_for(path)
  uri = Addressable::URI.parse(request.url)
  uri.path = path
  uri.to_s
end