Skip to content

HykuAddons: Accessing the API response

Paul Danelli edited this page Mar 2, 2022 · 1 revision

Accessing the API

HykuAddons uses HykuAPI in order to enable a API for a number of endpoints, including users and works. To access the API on your local machine, you would prefix the URL with "frontend". For example, if your local tenant is called repo, and the URL you access it with is http://repo.hyku.docker:3000/, then to access the API endpoints you would use http://repofrontend.hyku.docker:3000.

To access a work, you need to have the tenant UUID from the database and the work UUID, which are used to create the following:

http://repofrontend.hyku.docker:3000/api/v1/tenant/0b199b49-8f52-4725-b9c0-3c4c78f2c58c/work/f5ae370e-5f48-4ccf-890b-eb2f35f35ddb

To access the API on a production/staging tenant you follow the same pattern and add that to the tenant cname, including the dashboard prefix:

https://dashboard.anschutzdemo.ubiquityrepo-us.website/api/v1/tenant/249fcc62-4314-423c-8cbc-1bf0801f7c40/work/bf0041c5-5274-470e-8e97-5910a300f890