rcpch / digital-growth-charts-server

RCPCH's open source Digital Growth Chart API
https://growth.rcpch.ac.uk/
GNU Affero General Public License v3.0
16 stars 11 forks source link

Getting 404 - Resource Not Found exception while calling Mid Parental Height API end point #187

Closed princepsivannhs closed 1 year ago

princepsivannhs commented 1 year ago
pacharanero commented 1 year ago

Are you including your API key when sending the request?

princepsivannhs commented 1 year ago

Yes. We're using the same API key to get UK-WHO centile calculations, and we're getting the calculated centiles as expected for those requests.

princepsivannhs commented 1 year ago

Hi team, is there any update on this?

pacharanero commented 1 year ago

Hi @princepsivannhs we have located the problem and it should be a relatively easy fix. Hopefully in the next few days. Are you currently subscribing to one of the paid tiers or on teh free tier? (just for info/outreach etc)

princepsivannhs commented 1 year ago

Hi @pacharanero thanks for the update! We're currently using a free tier as part of developing a growth chart app for Royal Cornwall Hospital.

princepsivannhs commented 1 year ago

Hi @pacharanero, hope you're well. I was wondering if there is any further update on this.

pacharanero commented 1 year ago

I have been investigating and will try to fix soon.

princepsivannhs commented 1 year ago

Thanks for the update.

pacharanero commented 1 year ago

@princepsivannhs thanks for your patience on this, we have fixed this issue today and the midparental height endpoint should now be able to be accessed at https://api.rcpch.ac.uk/growth/v1/utilities/mid-parental-height as in the following example:

curl --location --request POST 'https://api.rcpch.ac.uk/growth/v1/utilities/mid-parental-height' \
--header 'Subscription-Key: YOUR_API_KEY_HERE' \
--header 'Content-Type: application/json' \
--data-raw '{
    "height_paternal": 182,
    "height_maternal": 176,
    "sex": "male"
}'
{"mid_parental_height":185.5,"mid_parental_height_sds":1.1711200756015423,"mid_parental_height_centile":87.92247423010475,"mid_parental_height_centile_data":[ <LARGE_ARRAY_OF_DATA_POINTS_FOR_PLOTTING_MPH> ... (clipped) ]
princepsivannhs commented 1 year ago

@pacharanero thank you very much!

We tried testing this on postman, and looks like everything's working as it should be. We're yet to test this further using our application. I shall reach out to you in case we require any further help/assistance. Thanks again

Cheers, Prince