Skip to content

Commit 4536e6f

Browse files
Fix the /v1 to /api/v1 replacement
1 parent ad8178d commit 4536e6f

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ codegen:
177177
# fix resource patch
178178
# in codegen/out/public_api.py replace all occurrences of resource_path='/v1 with resource_path='/api/v1
179179
# Use portable sed syntax: -i'' works on both macOS and Linux
180-
sed -i"" "s|resource_path='/v1|resource_path='/api/v1|g" codegen/out/aignx/codegen/api/public_api.py
180+
sed -i "" "s|resource_path='/v1|resource_path='/api/v1|g" codegen/out/aignx/codegen/api/public_api.py
181181

182182
# Special rule to catch any arguments (like patch, minor, major, pdf, Python versions, or x.y.z)
183183
# This prevents "No rule to make target" errors when passing arguments to make commands

codegen/in/archive/openapi_1.3.0+dev.305920c97bb.json renamed to codegen/in/archive/openapi_1.4.0.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "Aignostics Platform API",
55
"description": "\nThe Aignostics Platform is a cloud-based service that enables organizations to access advanced computational pathology applications through a secure API. The platform provides standardized access to Aignostics' portfolio of computational pathology solutions, with Atlas H&E-TME serving as an example of the available API endpoints. \n\nTo begin using the platform, your organization must first be registered by our business support team. If you don't have an account yet, please contact your account manager or email support@aignostics.com to get started. \n\nMore information about our applications can be found on [https://platform.aignostics.com](https://platform.aignostics.com).\n\n**How to authorize and test API endpoints:**\n\n1. Click the \"Authorize\" button in the right corner below\n3. Click \"Authorize\" button in the dialog to log in with your Aignostics Platform credentials\n4. After successful login, you'll be redirected back and can use \"Try it out\" on any endpoint\n\n**Note**: You only need to authorize once per session. The lock icons next to endpoints will show green when authorized.\n\n",
6-
"version": "1.3.0+dev.305920c97bb"
6+
"version": "1.4.0"
77
},
88
"servers": [
99
{
@@ -2960,8 +2960,8 @@
29602960
"flows": {
29612961
"authorizationCode": {
29622962
"scopes": {},
2963-
"authorizationUrl": "https://dev-8ouohmmrbuh2h4vu.eu.auth0.com/authorize",
2964-
"tokenUrl": "https://dev-8ouohmmrbuh2h4vu.eu.auth0.com/oauth/token"
2963+
"authorizationUrl": "https://aignostics-platform-staging.eu.auth0.com/authorize",
2964+
"tokenUrl": "https://aignostics-platform-staging.eu.auth0.com/oauth/token"
29652965
}
29662966
}
29672967
}

codegen/out/aignx/codegen/api/public_api.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def _application_version_details_v1_applications_application_id_versions_version
319319

320320
return self.api_client.param_serialize(
321321
method='GET',
322-
resource_path='/v1/applications/{application_id}/versions/{version}',
322+
resource_path='/api/v1/applications/{application_id}/versions/{version}',
323323
path_params=_path_params,
324324
query_params=_query_params,
325325
header_params=_header_params,
@@ -592,7 +592,7 @@ def _cancel_run_v1_runs_run_id_cancel_post_serialize(
592592

593593
return self.api_client.param_serialize(
594594
method='POST',
595-
resource_path='/v1/runs/{run_id}/cancel',
595+
resource_path='/api/v1/runs/{run_id}/cancel',
596596
path_params=_path_params,
597597
query_params=_query_params,
598598
header_params=_header_params,
@@ -878,7 +878,7 @@ def _create_run_v1_runs_post_serialize(
878878

879879
return self.api_client.param_serialize(
880880
method='POST',
881-
resource_path='/v1/runs',
881+
resource_path='/api/v1/runs',
882882
path_params=_path_params,
883883
query_params=_query_params,
884884
header_params=_header_params,
@@ -1145,7 +1145,7 @@ def _delete_run_items_v1_runs_run_id_artifacts_delete_serialize(
11451145

11461146
return self.api_client.param_serialize(
11471147
method='DELETE',
1148-
resource_path='/v1/runs/{run_id}/artifacts',
1148+
resource_path='/api/v1/runs/{run_id}/artifacts',
11491149
path_params=_path_params,
11501150
query_params=_query_params,
11511151
header_params=_header_params,
@@ -1436,7 +1436,7 @@ def _get_artifact_url_v1_runs_run_id_artifacts_artifact_id_file_get_serialize(
14361436

14371437
return self.api_client.param_serialize(
14381438
method='GET',
1439-
resource_path='/v1/runs/{run_id}/artifacts/{artifact_id}/file',
1439+
resource_path='/api/v1/runs/{run_id}/artifacts/{artifact_id}/file',
14401440
path_params=_path_params,
14411441
query_params=_query_params,
14421442
header_params=_header_params,
@@ -1721,7 +1721,7 @@ def _get_item_by_run_v1_runs_run_id_items_external_id_get_serialize(
17211721

17221722
return self.api_client.param_serialize(
17231723
method='GET',
1724-
resource_path='/v1/runs/{run_id}/items/{external_id}',
1724+
resource_path='/api/v1/runs/{run_id}/items/{external_id}',
17251725
path_params=_path_params,
17261726
query_params=_query_params,
17271727
header_params=_header_params,
@@ -1967,7 +1967,7 @@ def _get_me_v1_me_get_serialize(
19671967

19681968
return self.api_client.param_serialize(
19691969
method='GET',
1970-
resource_path='/v1/me',
1970+
resource_path='/api/v1/me',
19711971
path_params=_path_params,
19721972
query_params=_query_params,
19731973
header_params=_header_params,
@@ -2237,7 +2237,7 @@ def _get_run_v1_runs_run_id_get_serialize(
22372237

22382238
return self.api_client.param_serialize(
22392239
method='GET',
2240-
resource_path='/v1/runs/{run_id}',
2240+
resource_path='/api/v1/runs/{run_id}',
22412241
path_params=_path_params,
22422242
query_params=_query_params,
22432243
header_params=_header_params,
@@ -2541,7 +2541,7 @@ def _list_applications_v1_applications_get_serialize(
25412541

25422542
return self.api_client.param_serialize(
25432543
method='GET',
2544-
resource_path='/v1/applications',
2544+
resource_path='/api/v1/applications',
25452545
path_params=_path_params,
25462546
query_params=_query_params,
25472547
header_params=_header_params,
@@ -2947,7 +2947,7 @@ def _list_run_items_v1_runs_run_id_items_get_serialize(
29472947

29482948
return self.api_client.param_serialize(
29492949
method='GET',
2950-
resource_path='/v1/runs/{run_id}/items',
2950+
resource_path='/api/v1/runs/{run_id}/items',
29512951
path_params=_path_params,
29522952
query_params=_query_params,
29532953
header_params=_header_params,
@@ -3336,7 +3336,7 @@ def _list_runs_v1_runs_get_serialize(
33363336

33373337
return self.api_client.param_serialize(
33383338
method='GET',
3339-
resource_path='/v1/runs',
3339+
resource_path='/api/v1/runs',
33403340
path_params=_path_params,
33413341
query_params=_query_params,
33423342
header_params=_header_params,
@@ -3652,7 +3652,7 @@ def _put_item_custom_metadata_by_run_v1_runs_run_id_items_external_id_custom_met
36523652

36533653
return self.api_client.param_serialize(
36543654
method='PUT',
3655-
resource_path='/v1/runs/{run_id}/items/{external_id}/custom-metadata',
3655+
resource_path='/api/v1/runs/{run_id}/items/{external_id}/custom-metadata',
36563656
path_params=_path_params,
36573657
query_params=_query_params,
36583658
header_params=_header_params,
@@ -3953,7 +3953,7 @@ def _put_run_custom_metadata_v1_runs_run_id_custom_metadata_put_serialize(
39533953

39543954
return self.api_client.param_serialize(
39553955
method='PUT',
3956-
resource_path='/v1/runs/{run_id}/custom-metadata',
3956+
resource_path='/api/v1/runs/{run_id}/custom-metadata',
39573957
path_params=_path_params,
39583958
query_params=_query_params,
39593959
header_params=_header_params,
@@ -4223,7 +4223,7 @@ def _read_application_by_id_v1_applications_application_id_get_serialize(
42234223

42244224
return self.api_client.param_serialize(
42254225
method='GET',
4226-
resource_path='/v1/applications/{application_id}',
4226+
resource_path='/api/v1/applications/{application_id}',
42274227
path_params=_path_params,
42284228
query_params=_query_params,
42294229
header_params=_header_params,

0 commit comments

Comments
 (0)