NCIOCPL / clinical-trials-listing-app

React Application for listing clinical trials
3 stars 1 forks source link

Update v1 versions of variables to new V2 versions #135

Closed alerosad closed 2 years ago

alerosad commented 3 years ago

Description:

In the v2 of the api, there were multiple changes made to variables such as:

The API endpoint now returns the data as { total: x, data: {}, }

Besides returning data in that new form, there is this schema change also:

{ "central_contact": { "central_contact_phone": null, "central_contact_name": null, "central_contact_email": null, "central_contact_type": null } }

To:

{ "central_contact": { "phone": null, "name": null, "type": null, "email": null } }

Besides these two changes, there are many more listed in this document: https://clinicaltrialsapi.cancer.gov/breaking-changes

All instances of these changed variables must be updated.

Parent Issue: Spike https://github.com/NCIOCPL/clinical-trials-listing-app/issues/127

Sub-Tasks:

sarinapadilla commented 2 years ago

Closing this ticket as the update to CTS API v2 has been launched.