hubmapconsortium / ingest-api

MIT License
0 stars 0 forks source link

Add endpoint `privs/has-data-admin` #514

Closed shirey closed 2 months ago

shirey commented 4 months ago

Replicate/port /privs/has-data-admin from SenNet ingest-api

ChuckKollar commented 3 months ago

PR: https://github.com/hubmapconsortium/ingest-api/pull/530

ChuckKollar commented 3 months ago

Related PR: https://github.com/hubmapconsortium/gateway/pull/306

ChuckKollar commented 3 months ago

The endpoint has been modified to send a status_code of 401 if the "User's token is not valid" (as per the ingest-api-spec.yaml file). For a valid logged in token it will return the json {'has_data_admin_privs': true/false} with a status_code of 200.

PR: https://github.com/hubmapconsortium/ingest-api/pull/533