Skip to content

Latest commit

 

History

History
57 lines (28 loc) · 2.08 KB

README.md

File metadata and controls

57 lines (28 loc) · 2.08 KB

DataExchange-DatasetJson

This project is used to manage the JSON representation for Clinical Datasets (a complement to the Dataset-XML representation) @2022

APIs using Dataset-JSON

Create FAST-API and MySQL docker containers to provide data requests

Parameters are: filename (like adam/adae), fileformat (json...)

Current files are examples that provided by cdisc-org DataExchange-DatasetJson

Steps

pyenvcreate.sh will create virtul env for python codes for:

  1. FASTAPI
  2. Python code to read example files and write into connecrted mysql docker container.

reset.sh will generate password for mysql container and FAST-API authorization information.

localtest folder create one mysql container in local machine.

other docker-compose file and dockerfile will deploy into real env.

Testing

Local testing: image

GET one dataset (here is adae.json):

Screen Shot 2022-10-18 at 8 12 58 PM

GET one dataset by using file name and file format

Screen Shot 2022-10-18 at 8 50 11 PM

If turn on API authorization:

Screen Shot 2022-10-18 at 8 15 19 PM

GET Format

format

GET File Datasets

examplelist

Arch

Screen Shot 2022-10-18 at 7 21 41 PM