Skip to content

Commit

Permalink
Expose costing information
Browse files Browse the repository at this point in the history
  • Loading branch information
cettina-tosto committed Apr 10, 2024
1 parent 0f4f630 commit cb263d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cads_catalogue_api_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,18 @@ def generate_collection_links(
}
)

if "costing" in model.resource_data.adaptor_configuration:
additional_links.append(
{
"rel": "costing_api",
"href": urllib.parse.urljoin(
config.settings.processes_base_url,
f"processes/{model.resource_uid}/costing",
),
"type": "application/json",
}
)

if model.layout:
additional_links.append(
{
Expand Down

0 comments on commit cb263d3

Please sign in to comment.