department-of-veterans-affairs/mock-health-records-api

Name: mock-health-records-api

Owner: Department of Veterans Affairs

Description: null

Created: 2017-02-23 21:55:38.0

Updated: 2017-02-23 22:04:34.0

Pushed: 2017-02-23 22:35:51.0

Homepage: null

Size: 1641

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

mock-health-records-api

Simple HTTP service that responds to the same paths as the health records endpoint.

Most data is entirely static, but a request for the PDF or txt report data will pull a random file of the appropriate type from the content/ directory. In this way it is possible to adjust the payload size returned and the distribution of sizes, by adjusting the contents of that directory.

This mock service is designed to simulate the content chunking strategy used by the real health records endpoint for large file downloads.

Run with PORT=<port> ruby server.rb. Port defaults to 3005.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.